From: Ian Jackson Date: Sat, 24 Feb 2024 23:23:08 +0000 (+0000) Subject: Makefile: clean target Move various rm's from debian/rules X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=d144f3e2c36cb9c40f7813cf23e26669fd56a9af;p=hippotat.git Makefile: clean target Move various rm's from debian/rules These are applicable to upstream too. And run very-clean rather than open-coding rm target. Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index 633034c..0f7098d 100644 --- a/Makefile +++ b/Makefile @@ -85,7 +85,9 @@ install: all $(INSTALL) -m 644 $(MAN8PAGES) $(DESTDIR)$(man8dir)/. clean: - rm -rf stamp/* doc/html + rm -rf stamp/* + rm -rf docs/html docs/doctrees + rm -f hippotat-setup-permissions.8 very-clean: clean $(CARGO) clean diff --git a/debian/rules b/debian/rules index 5b0d77e..e63965c 100755 --- a/debian/rules +++ b/debian/rules @@ -35,10 +35,8 @@ execute_before_dh_auto_clean: then mv Cargo.lock.upstream Cargo.lock; fi execute_after_dh_auto_clean: - rm -rf target - rm -rf docs/html docs/doctrees + $(MAKE) very-clean rm -rf debian/cargo_home - rm -f hippotat-setup-permissions.8 override_dh_auto_test: @echo not running tests during build - they need unshare