From b369f720f5fc6b56a090fa890b204d46ff0df185 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 1 Feb 2019 10:08:36 +0000 Subject: [PATCH] buildsys: don't cache non-binary data etc/ and www/ should be clean in the build/ dir Signed-off-by: Wolfgang Bumiller --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3bf8f3c5..c2d9a7ba 100644 --- 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 {} ';' -- 2.39.5