From: Benjamin Drung Date: Mon, 4 Aug 2025 22:09:31 +0000 (+0200) Subject: feat(Makefile): introduce distclean target X-Git-Tag: 109~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb02f40a7e9abcf03ded948aba72473de103cec3;p=thirdparty%2Fdracut-ng.git feat(Makefile): introduce distclean target Add a `distclean` target to remove all generated files including the one (`Makefile.inc`) created by `configure`. Calling `make distclean` should have the same result as `git clean -fdx`. --- diff --git a/Makefile b/Makefile index 2b7937496..db1ce4b25 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ man8pages = man/dracut.8 \ manpages = $(man1pages) $(man5pages) $(man7pages) $(man8pages) -.PHONY: install clean archive test all check AUTHORS CONTRIBUTORS doc +.PHONY: install clean distclean archive test all check AUTHORS CONTRIBUTORS doc all: dracut.pc dracut-install src/skipcpio/skipcpio dracut-util @@ -292,6 +292,9 @@ clean: $(RM) -rf build/ doc_site/modules/ROOT/pages/man/* $(MAKE) -C test clean +distclean: clean + $(RM) Makefile.inc + syncheck: @ret=0;for i in dracut-initramfs-restore.sh modules.d/*/*.sh; do \ [ "$${i##*/}" = "module-setup.sh" ] && continue; \