aboutsummaryrefslogtreecommitdiffstats
path: root/mk/clean.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-10 02:27:59 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-10 02:27:59 +0100
commit544831854014d160b8f9100d6442219da90aacea (patch)
treee8565f3cedb81479b0526799fd054a96ac1874cb /mk/clean.mk
parentm (diff)
downloadscrotty-544831854014d160b8f9100d6442219da90aacea.tar.gz
scrotty-544831854014d160b8f9100d6442219da90aacea.tar.bz2
scrotty-544831854014d160b8f9100d6442219da90aacea.tar.xz
a bunch of stuff...
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--mk/clean.mk21
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)
+