summaryrefslogtreecommitdiff
path: root/package/Makefile
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
commitd5b15895ef66b9a664afa72d88507060e1f0a270 (patch)
treecbd50b9c4def14459a93039cd56b3e746af65e65 /package/Makefile
parent9abbe7a03331e090354effabae026992dc962332 (diff)
downloadmtk-20170518-d5b15895ef66b9a664afa72d88507060e1f0a270.zip
mtk-20170518-d5b15895ef66b9a664afa72d88507060e1f0a270.tar.gz
mtk-20170518-d5b15895ef66b9a664afa72d88507060e1f0a270.tar.bz2
package/refresh should clean all packages before refreshing their patches
SVN-Revision: 7489
Diffstat (limited to 'package/Makefile')
-rw-r--r--package/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/Makefile b/package/Makefile
index 94241db..d6af3f2 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: