From: Leandro Lucarella Date: Thu, 24 Dec 2009 23:22:19 +0000 (-0300) Subject: Add a "clean" target to the Makefile X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/commitdiff_plain/045edac361c6b9624a3fcd551edd23f7f75608ce?ds=sidebyside Add a "clean" target to the Makefile --- diff --git a/Makefile b/Makefile index 90a932f..bdd709b 100644 --- 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)