diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-06-20 23:40:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-06-20 23:40:02 +0000 |
commit | 01ddf4d5235ba941272d2180640476fc0d31b7e2 (patch) | |
tree | 3d911ab3f6d8bc35f71a7424e4e303b3c2b5cd12 /package/Makefile | |
parent | fcd89327c90fc428c6b5e322c4093c17cdf88442 (diff) | |
download | upstream-01ddf4d5235ba941272d2180640476fc0d31b7e2.tar.gz upstream-01ddf4d5235ba941272d2180640476fc0d31b7e2.tar.bz2 upstream-01ddf4d5235ba941272d2180640476fc0d31b7e2.zip |
add package/download target
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4028 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/Makefile')
-rw-r--r-- | package/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/Makefile b/package/Makefile index 7548e069a7..2b7f0db764 100644 --- a/package/Makefile +++ b/package/Makefile @@ -3,12 +3,16 @@ include $(TOPDIR)/rules.mk include $(TOPDIR)/.config include $(TOPDIR)/.pkgdeps +SOURCE_PACKAGES:=$(patsubst %,%-source,$(package-y) $(package-m)) COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m)) INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y)) $(STAMP_DIR) $(TARGET_DIR): mkdir -p $@ +%-source: $(STAMP_DIR) $(TARGET_DIR) + $(MAKE) -C $(patsubst %-source,%,$@) source MAKEFLAGS="$(BUILD_MAKEFLAGS)" + %-prepare: $(STAMP_DIR) $(TARGET_DIR) $(MAKE) -C $(patsubst %-prepare,%,$@) prepare MAKEFLAGS="$(BUILD_MAKEFLAGS)" @@ -29,6 +33,7 @@ $(TOPDIR)/.pkgdeps: $(TOPDIR)/.pkginfo all: compile clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) +download: $(SOURCE_PACKAGES) compile-targets: $(COMPILE_PACKAGES) compile: $(MAKE) -j$(CONFIG_JLEVEL) compile-targets |