2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(TOPDIR
)/.config
11 include $(INCLUDE_DIR
)/host.mk
15 include $(TMP_DIR
)/.pkgdeps
17 PREREQ_PACKAGES
:=$(patsubst %,%-prereq
,$(prereq-y
) $(prereq-m
))
18 DOWNLOAD_PACKAGES
:=$(patsubst %,%-download
,$(package-y
) $(package-m
))
19 COMPILE_PACKAGES
:=$(patsubst %,%-compile
,$(package-y
) $(package-m
))
20 INSTALL_PACKAGES
:=$(patsubst %,%-install,$(package-y
))
22 $(STAMP_DIR
) $(TARGET_DIR
):
25 %-prereq
: $(STAMP_DIR
) $(TARGET_DIR
)
26 $(MAKE
) -C
$(patsubst %-prereq
,%,$@
) prereq
28 $(eval
$(call default_subtargets
,$(TARGET_DIR
)))
34 $(TMP_DIR
)/.pkgdeps
: $(TMP_DIR
)/.pkginfo
35 @
$(TOPDIR
)/scripts
/metadata.pl package_mk
$(GENDEP_OPTS
) < $< > $@ ||
rm -f
$@
38 clean: $(patsubst %,%-clean,$(package-
) $(package-y
) $(package-m
))
39 prereq
: $(PREREQ_PACKAGES
)
40 download
: $(DOWNLOAD_PACKAGES
)
41 compile
: $(COMPILE_PACKAGES
)
43 install-targets
: $(INSTALL_PACKAGES
)
45 rm -rf
$(BUILD_DIR
)/root
46 $(MAKE
) install-targets
48 @if
[ -d
$(TOPDIR
)/files
]; then \
49 $(CP
) $(TOPDIR
)/files
/.
$(BUILD_DIR
)/root
; \
52 cd
$(BUILD_DIR
)/root
; \
53 for script in .
/etc
/init.d
/*; do \
54 grep
'#!/bin/sh /etc/rc.common' $$script >/dev
/null || continue
; \
55 IPKG_INSTROOT
=$(BUILD_DIR
)/root
$(which bash
) .
/etc
/rc.common
$$script enable
; \
59 index
: $(PACKAGE_DIR
)/Packages
61 $(PACKAGE_DIR
)/Packages
: $(PACKAGE_DIR
)/*.ipk
62 (cd
$(PACKAGE_DIR
); $(SCRIPT_DIR
)/ipkg-make-index.sh .
> Packages
)
65 ..
/scripts
/feeds.sh
$(CONFIG_SOURCE_FEEDS
)
67 ifeq ($(MAKECMDGOALS
),compile
)
68 MAKEFLAGS
:=$(MAKEFLAGS
) -j
$(CONFIG_JLEVEL
)
This page took 0.067568 seconds and 5 git commands to generate.