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 $(TOPDIR
)/.pkgdeps
13 PREREQ_PACKAGES
:=$(patsubst %,%-prereq
,$(package-y
) $(package-m
))
14 DOWNLOAD_PACKAGES
:=$(patsubst %,%-download
,$(package-y
) $(package-m
))
15 COMPILE_PACKAGES
:=$(patsubst %,%-compile
,$(package-y
) $(package-m
))
16 INSTALL_PACKAGES
:=$(patsubst %,%-install,$(package-y
))
18 $(STAMP_DIR
) $(TARGET_DIR
):
21 %-prereq
: $(STAMP_DIR
) $(TARGET_DIR
)
22 $(MAKE
) -C
$(patsubst %-prereq
,%,$@
) prereq MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
24 %-download
: $(STAMP_DIR
) $(TARGET_DIR
)
25 $(MAKE
) -C
$(patsubst %-download
,%,$@
) download MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
27 %-prepare
: $(STAMP_DIR
) $(TARGET_DIR
)
28 $(MAKE
) -C
$(patsubst %-prepare
,%,$@
) prepare MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
30 %-compile
: $(STAMP_DIR
) $(TARGET_DIR
)
31 $(MAKE
) -C
$(patsubst %-compile
,%,$@
) compile MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
33 %-install: $(STAMP_DIR
) $(TARGET_DIR
)
34 $(MAKE
) -C
$(patsubst %-install,%,$@
) install MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
36 %-clean: $(STAMP_DIR
) $(TARGET_DIR
)
37 $(MAKE
) -C
$(patsubst %-clean,%,$@
) clean MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
43 $(TOPDIR
)/.pkgdeps
: $(TOPDIR
)/.pkginfo
44 @
$(TOPDIR
)/scripts
/gen_deps.pl
$(GENDEP_OPTS
) < $< > $@ ||
rm -f
$@
47 clean: $(patsubst %,%-clean,$(package-
) $(package-y
) $(package-m
))
48 prereq
: $(PREREQ_PACKAGES
)
49 download
: $(DOWNLOAD_PACKAGES
)
50 compile-targets
: $(COMPILE_PACKAGES
)
52 $(MAKE
) -j
$(CONFIG_JLEVEL
) compile-targets
53 install-targets
: base-files-install
$(INSTALL_PACKAGES
)
55 rm -rf
$(BUILD_DIR
)/root
56 $(MAKE
) install-targets
This page took 0.044458 seconds and 5 git commands to generate.