-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gitclean and distclean options to /tools/Makefile
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!} |