From e027f3c7e6db96535e2515d6e65389a5079e0a82 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 27 May 2013 22:40:28 +0200 Subject: Add clean make target --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf