Pārlūkot izejas kodu

package/refresh should clean all packages before refreshing their patches

SVN-Revision: 7489
Felix Fietkau 18 gadi atpakaļ
vecāks
revīzija
d5b15895ef
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      package/Makefile

+ 4 - 3
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: