2 # Copyright (C) 2006-2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
11 -include $(TMP_DIR
)/.packagedeps
12 $(curdir
)/builddirs
:=$(sort $(package-
) $(package-y
) $(package-m
))
14 $(curdir
)/builddirs-install
:=.
16 $(curdir
)/builddirs-default
:=.
$(sort $(package-y
) $(package-m
))
17 $(curdir
)/builddirs-prereq
:=.
$(sort $(prereq-y
) $(prereq-m
))
18 $(curdir
)/builddirs-install
:=.
$(sort $(package-y
))
21 $(curdir
)/install:=$(curdir
)/install-cleanup
23 $(curdir
)/cleanup
: $(TMP_DIR
)/.build
26 $(curdir
)/rootfs-prepare
: $(TMP_DIR
)/.build
27 @
-$(MAKE
) package
/preconfig
28 @if
[ -d
$(TOPDIR
)/files
]; then \
29 $(CP
) $(TOPDIR
)/files
/.
$(TARGET_DIR
); \
31 @mkdir
-p
$(TARGET_DIR
)/etc
/rc.d
34 for script in .
/etc
/init.d
/*; do \
35 grep
'#!/bin/sh /etc/rc.common' $$script >/dev
/null || continue
; \
36 IPKG_INSTROOT
=$(TARGET_DIR
) $(which bash
) .
/etc
/rc.common
$$script enable
; \
39 @
-find
$(TARGET_DIR
) -name CVS |
$(XARGS
) rm -rf
40 @
-find
$(TARGET_DIR
) -name .svn |
$(XARGS
) rm -rf
41 @
-find
$(TARGET_DIR
) -name
'.#*' |
$(XARGS
) rm -f
42 $(if
$(CONFIG_CLEAN_IPKG
),rm -rf
$(TARGET_DIR
)/usr
/lib
/ipkg
)
44 $(curdir
)/index
: FORCE
45 @
(cd
$(PACKAGE_DIR
); $(SCRIPT_DIR
)/ipkg-make-index.sh .
> Packages
)
47 $(curdir
)/flags-install
:= -j1
49 $(eval
$(call stampfile
,$(curdir
),package
,prereq
,.config
))
50 $(eval
$(call stampfile
,$(curdir
),package
,cleanup
,$(TMP_DIR
)/.build
))
51 $(eval
$(call stampfile
,$(curdir
),package
,compile
,$(TMP_DIR
)/.build
))
52 $(eval
$(call stampfile
,$(curdir
),package
,install,$(TMP_DIR
)/.build
))
53 $(eval
$(call stampfile
,$(curdir
),package
,rootfs-prepare
,$(TMP_DIR
)/.build
))
55 $(eval
$(call subdir
,$(curdir
)))
This page took 0.045548 seconds and 5 git commands to generate.