summaryrefslogtreecommitdiff
path: root/src/tool/Makefile.in
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-10-05 07:38:19 +0200
committerHaru <haru@dotalux.com>2013-10-05 07:38:19 +0200
commitd6965a8072c5a768f798a4a58e525b695c702afd (patch)
treee0b542aefe9bb1b7d9ab5d76644c4e1bad72f948 /src/tool/Makefile.in
parent62c5e65d28833c1068d195778c0e3a710acaa104 (diff)
downloadhercules-d6965a8072c5a768f798a4a58e525b695c702afd.tar.gz
hercules-d6965a8072c5a768f798a4a58e525b695c702afd.tar.bz2
hercules-d6965a8072c5a768f798a4a58e525b695c702afd.tar.xz
hercules-d6965a8072c5a768f798a4a58e525b695c702afd.zip
Added 'buildclean' target to all makefiles
- By invoking 'make buildclean', you can clean up all the build intermediate (object) files, without deleting any of the built executables and plugins. - To delete everything, use 'make clean', as you've always done. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/tool/Makefile.in')
-rw-r--r--src/tool/Makefile.in20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/tool/Makefile.in b/src/tool/Makefile.in
index baf4a0327..ee448a16a 100644
--- a/src/tool/Makefile.in
+++ b/src/tool/Makefile.in
@@ -22,7 +22,7 @@ CC = @CC@
export CC
#####################################################################
-.PHONY: all mapcache clean help
+.PHONY: all mapcache clean buildclean help
all: mapcache Makefile
@@ -32,16 +32,22 @@ mapcache: ../../mapcache@EXEEXT@
@echo " LD $(notdir $@)"
@$(CC) @LDFLAGS@ $(LIBCONFIG_INCLUDE) -o ../../mapcache@EXEEXT@ $(MAPCACHE_OBJ) $(COMMON_OBJ) $(LIBCONFIG_OBJ) @LIBS@
-clean:
+buildclean:
+ @echo " CLEAN tool (build temp files)"
+ @rm -rf obj_all/*.o
+
+clean: buildclean
@echo " CLEAN tool"
- @rm -rf obj_all/*.o ../../mapcache@EXEEXT@
+ @rm -rf ../../mapcache@EXEEXT@
help:
@echo "possible targets are 'mapcache' 'all' 'clean' 'help'"
- @echo "'mapcache' - mapcache generator"
- @echo "'all' - builds all above targets"
- @echo "'clean' - cleans builds and objects"
- @echo "'help' - outputs this message"
+ @echo "'mapcache' - mapcache generator"
+ @echo "'all' - builds all above targets"
+ @echo "'clean' - cleans builds and objects"
+ @echo "'buildclean' - cleans build temporary (object) files, without deleting the"
+ @echo " executables"
+ @echo "'help' - outputs this message"
#####################################################################