]> git.proxmox.com Git - proxmox-backup.git/commitdiff
buildsys: don't cache non-binary data
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 1 Feb 2019 10:08:36 +0000 (10:08 +0000)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 1 Feb 2019 10:09:34 +0000 (10:09 +0000)
etc/ and www/ should be clean in the build/ dir

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Makefile

index 3bf8f3c564b64d814fca73ebe7be9440e1e9375e..c2d9a7bac3599b85acb24a0dac48577d026c8283 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,8 @@ build:
        rm -rf build
        rsync -a debian Makefile defines.mk Cargo.toml src $(SUBDIRS) build/
        test -d target && rsync -a target build/ || true
+       $(foreach i,$(SUBDIRS), \
+           $(MAKE) -C build/$(i) clean ;)
 
 .PHONY: deb
 deb: $(DEB)
@@ -71,7 +73,8 @@ $(DSC): build
 distclean: clean
 
 clean:
-       $(MAKE) -C www clean
+       $(foreach i,$(SUBDIRS), \
+           $(MAKE) -C $(i) clean ;)
        cargo clean
        rm -rf *.deb *.dsc *.tar.gz *.buildinfo *.changes build
        find . -name '*~' -exec rm {} ';'