Skip to content

Commit

Permalink
Add gitclean and distclean options to /tools/Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dak664 committed Aug 5, 2011
1 parent 96c3c10 commit bfbc323
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tools/Makefile
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
all: codeprop tunslip

gitclean:
@git clean -d -x -n ..
@echo "Enter yes to delete these files";
@read response;if [[ "$$response" = "yes" ]]; then git clean -d -f -x ..;fi;

distclean: cleanobj cleanfiles cleantargets cleandone
cleanobj:
${info Removing obj_* directories...}
@find ../examples/ -name "obj_*" -print -exec rm -R '{}' +
cleanfiles:
${info Removing .map, .co, .ce, contiki*.a files...}
@find ../examples -name "*.map" -print -delete
@find ../examples -name "*.co" -print -delete
@find ../examples -name "*.ce" -print -delete
@find ../examples -name "contiki-*.a" -delete
cleantargets:
${info Removing .TARGET builds...}
@rm -f -v ${addprefix ../examples/*/*., ${shell ls ../platform/}}
@rm -f -v ${addprefix ../examples/*/*/*., ${shell ls ../platform/}}
cleandone:
@echo ${info All done!}

0 comments on commit bfbc323

Please sign in to comment.