diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2016-01-04 22:40:56 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2016-01-04 22:40:56 +0100 |
commit | c7cc5ef90d3f9ba9f7482da5aad62092b7857976 (patch) | |
tree | daabafde1fdda47a14e4bf92b3aaa09551919915 /mk/clean.mk | |
parent | forgot that (diff) | |
download | libhaiku-c7cc5ef90d3f9ba9f7482da5aad62092b7857976.tar.gz libhaiku-c7cc5ef90d3f9ba9f7482da5aad62092b7857976.tar.bz2 libhaiku-c7cc5ef90d3f9ba9f7482da5aad62092b7857976.tar.xz |
import build system and adapt or library
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | mk/clean.mk | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/mk/clean.mk b/mk/clean.mk new file mode 100644 index 0000000..c2a90b4 --- /dev/null +++ b/mk/clean.mk @@ -0,0 +1,45 @@ +# Copyright (C) 2015, 2016 Mattias Andrée <maandree@member.fsf.org> +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. + + +#=== These rules are used for cleaning the repository of generated files. ===# + + +# Delete all files are normally created during a build. +.PHONY: clean +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 or building. +.PHONY: 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. +.PHONY: mostlyclean +mostlyclean: clean + +# Delete everything except ./configure +.PHONY: maintainer-clean +maintainer-clean: clean distclean + @$(ECHO) + @$(ECHO) 'This command is intended for maintainers to use; it' + @$(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) + |