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 SOURCE_PACKAGES
:=$(patsubst %,%-download
,$(package-y
) $(package-m
))
14 COMPILE_PACKAGES
:=$(patsubst %,%-compile
,$(package-y
) $(package-m
))
15 INSTALL_PACKAGES
:=$(patsubst %,%-install,$(package-y
))
17 $(STAMP_DIR
) $(TARGET_DIR
):
20 %-download
: $(STAMP_DIR
) $(TARGET_DIR
)
21 $(MAKE
) -C
$(patsubst %-download
,%,$@
) download MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
23 %-prepare
: $(STAMP_DIR
) $(TARGET_DIR
)
24 $(MAKE
) -C
$(patsubst %-prepare
,%,$@
) prepare MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
26 %-compile
: $(STAMP_DIR
) $(TARGET_DIR
)
27 $(MAKE
) -C
$(patsubst %-compile
,%,$@
) compile MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
29 %-install: $(STAMP_DIR
) $(TARGET_DIR
)
30 $(MAKE
) -C
$(patsubst %-install,%,$@
) install MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
32 %-clean: $(STAMP_DIR
) $(TARGET_DIR
)
33 $(MAKE
) -C
$(patsubst %-clean,%,$@
) clean MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
39 $(TOPDIR
)/.pkgdeps
: $(TOPDIR
)/.pkginfo
40 @
$(TOPDIR
)/scripts
/gen_deps.pl
$(GENDEP_OPTS
) < $< > $@ ||
rm -f
$@
43 clean: $(patsubst %,%-clean,$(package-
) $(package-y
) $(package-m
))
44 download
: $(SOURCE_PACKAGES
)
45 compile-targets
: $(COMPILE_PACKAGES
)
47 $(MAKE
) -j
$(CONFIG_JLEVEL
) compile-targets
48 install-targets
: base-files-install
$(INSTALL_PACKAGES
)
50 rm -rf
$(BUILD_DIR
)/root
51 $(MAKE
) install-targets
This page took 0.040093 seconds and 5 git commands to generate.