source: freewrt/package/base-files-arch/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.5 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8include $(TOPDIR)/mk/targets.mk
9
10PKG_NAME:= base-files-arch
11PKG_RELEASE:= 2
12
13WRKSRC= ${WRKDIR}/$(PKG_NAME)
14DISTFILES:=
15
16include $(TOPDIR)/mk/package.mk
17
18IDIR_BASE_ARCH:=$(WRKBUILD)/$(PKG_NAME)
19IPKG_BASE_ARCH:=$(PACKAGE_DIR)/base-files-arch_$(PKG_RELEASE)_$(ARCH).ipk
20
21$(WRKBUILD)/.prepared:
22 mkdir -p $(WRKBUILD)
23 touch $@
24
25$(WRKBUILD)/.configured:
26 touch $@
27
28$(WRKBUILD)/.built:
29 touch $@
30
31$(IPKG_BASE_ARCH):
32 mkdir -p $(IDIR_BASE_ARCH)
33 $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_BASE_ARCH) ipkg/$(PKG_NAME).control $(PKG_RELEASE) $(ARCH)
34 -[ -d $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/files ] && \
35 $(CP) $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/files/* $(IDIR_BASE_ARCH)
36 -[ -d $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(FS)/files ] && \
37 $(CP) $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(FS)/files/* $(IDIR_BASE_ARCH)
38 -[ -d $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(MODEL)/files ] && \
39 $(CP) $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(MODEL)/files/* $(IDIR_BASE_ARCH)
40 -find $(IDIR_BASE_ARCH) -type d -name CVS | xargs rm -rf
41 -find $(IDIR_BASE_ARCH) -type d -name .svn | xargs rm -rf
42 -find $(IDIR_BASE_ARCH) -name '.#*' | xargs rm -f
43 $(IPKG_BUILD) $(IDIR_BASE_ARCH) $(PACKAGE_DIR)
44
45compile-targets: $(IPKG_BASE_ARCH)
46install-targets: compile
47 $(IPKG) install $(IPKG_BASE_ARCH)
Note: See TracBrowser for help on using the repository browser.