diff options
Diffstat (limited to '')
-rw-r--r-- | mk/clean.mk | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/mk/clean.mk b/mk/clean.mk index 4d6d1a4..d0a97c4 100644 --- a/mk/clean.mk +++ b/mk/clean.mk @@ -11,15 +11,17 @@ # Delete all files are normally created during a build. .PHONY: clean -clean: - @$(PRINTF_INFO) '\e[00;01;31mCLEANING\e[34m\e[00m\n' - -$(Q)$(RM) -r bin obj $(PKGNAME)-*.tar* $(PKGNAME)-*.checksums* +clean: clean-dist + @$(PRINTF_INFO) '\e[00;01;31mCLEANING BUILT FILES\e[34m\e[00m\n' + -$(Q)$(RM) -r -- bin aux @$(ECHO) -# Delete all files that are created during configuration. -# Note, this, for some reason, should not imply `make clean`. +# Delete all files that are created during configuration or building. .PHONY: distclean -distclean: +distclean: clean + @$(PRINTF_INFO) '\e[00;01;31mCLEANING CONFIGURATIONS\e[34m\e[00m\n' + -$(Q)$(RM) -- .config.mk config.status Makefile + @$(ECHO) # Like `make clean` but do not remove massive binaries # that are seldom recompiled. @@ -34,3 +36,10 @@ maintainer-clean: clean distclean @$(ECHO) 'deletes files that may need special tools to rebuild.' @$(ECHO) +# Delete all files generated by `make dist` +.PHONY: clean-dist +clean-dist: + @$(PRINTF_INFO) '\e[00;01;31mCLEANING RELEASES\e[34m\e[00m\n' + -$(Q)$(RM) -r -- $(_PROJECT)-*.tar* $(_PROJECT)-*.checksums* $(_PROJECT)-* + @$(ECHO) + |