]> git.llucax.com Git - software/dgc/cdgc.git/commitdiff
Add a "clean" target to the Makefile
authorLeandro Lucarella <llucax@gmail.com>
Thu, 24 Dec 2009 23:22:19 +0000 (20:22 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 24 Dec 2009 23:22:19 +0000 (20:22 -0300)
Makefile

index 90a932fb6840d4e9e05c02e4469f5dad10f7cb0c..bdd709bbf60a4b1ca428155cc545aca4b64f5a16 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,9 @@ $B/%.o: %.d
        $(if $V,,@echo '  $(DC) $@')
        $(if $V,,@) $(DC) $(DCFLAGS) $(DC_OBJ_OPT) $(DC_OUTPUT_OPTION) $<
 
+clean:
+       $(if $V,,@echo '  $(RM) $B')
+       $(if $V,,@) $(RM) -r $B
 
 __dummy := $(shell mkdir -p $B)