aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-27 22:40:28 +0200
committerGravatar Tom Willemse2013-05-27 22:40:37 +0200
commite027f3c7e6db96535e2515d6e65389a5079e0a82 (patch)
tree38fed19be886b73c664a6aa2079c3e2abbc01362 /Makefile
parent7f6037855dbfb16e5c05c29fd1eaeba14c4dfabb (diff)
downloadgitto-e027f3c7e6db96535e2515d6e65389a5079e0a82.tar.gz
gitto-e027f3c7e6db96535e2515d6e65389a5079e0a82.zip
Add clean make target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0b51b8d..8bab8ce 100644
--- a/Makefile
+++ b/Makefile
@@ -7,12 +7,15 @@ export INSTALL_DATA = $(INSTALL) -m 644
dirs = doc src gitto zsh
install-dirs = $(addprefix install-,$(dirs))
uninstall-dirs = $(addprefix uninstall-,$(dirs))
+clean-dirs = $(addprefix clean-,$(dirs))
-.PHONY: all $(dirs) install $(install-dirs) uninstall $(uninstall-dirs)
+.PHONY: all $(dirs) install $(install-dirs) uninstall $(uninstall-dirs) \
+ clean $(clean-dirs)
all: $(dirs)
install: $(install-dirs)
uninstall: $(uninstall-dirs)
+clean: $(clean-dirs)
$(dirs):
$(MAKE) -C $@/
@@ -22,3 +25,6 @@ $(install-dirs): install-%:
$(uninstall-dirs): uninstall-%:
$(MAKE) -C $*/ uninstall
+
+$(clean-dirs): clean-%:
+ $(MAKE) -C $*/ clean