aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-04 11:20:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-04 11:20:03 +0000
commitac587815b0f46cdc8eb7d7141ffb5784b98b4b3b (patch)
treeba2f8d4ea2bd1ddccfc59ae4665d3c418a590ffd /package
parent80d2beea9d2661d7bd6a97efda4957af2638619d (diff)
downloadupstream-ac587815b0f46cdc8eb7d7141ffb5784b98b4b3b.tar.gz
upstream-ac587815b0f46cdc8eb7d7141ffb5784b98b4b3b.tar.bz2
upstream-ac587815b0f46cdc8eb7d7141ffb5784b98b4b3b.zip
package/refresh should clean all packages before refreshing their patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7489 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/Makefile b/package/Makefile
index 94241dbc3d..d6af3f28f7 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -34,6 +34,9 @@ endif
%-refresh %-update:
-$(MAKE) -C $* $(patsubst $*-%,%,$@)
+
+%-autorefresh:
+ -$(MAKE) -C $* clean refresh QUILT=1
# .IGNORE: $(COMPILE_PACKAGES)
@@ -46,9 +49,7 @@ clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
prereq: $(PREREQ_PACKAGES)
download: $(DOWNLOAD_PACKAGES)
compile: $(COMPILE_PACKAGES)
-ifneq ($(QUILT),)
- refresh: $(patsubst %,%-refresh,$(package-y) $(package-m) $(package-))
-endif
+refresh: $(patsubst %,%-autorefresh,$(package-y) $(package-m) $(package-))
install-targets: $(INSTALL_PACKAGES)
install: