]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat(Makefile): introduce distclean target
authorBenjamin Drung <benjamin.drung@canonical.com>
Mon, 4 Aug 2025 22:09:31 +0000 (00:09 +0200)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 9 Aug 2025 11:03:27 +0000 (07:03 -0400)
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`.

Makefile

index 2b7937496b2936e5e392af56c53fadf49bce7607..db1ce4b25f89dd33895f11717d4d54d4ea19e873 100644 (file)
--- 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; \