Makefile
changeset 116 ae784a3a45b1
parent 108 d6a52e0152fb
child 117 5f3a34ba6489
equal deleted inserted replaced
115:47731bdd72c9 116:ae784a3a45b1
   336 
   336 
   337 .PHONY: beauty clean uninstall
   337 .PHONY: beauty clean uninstall
   338 
   338 
   339 clean:
   339 clean:
   340 ifdef FIND
   340 ifdef FIND
   341 	$(FIND) -name '*~' -exec $(RM) {} \;
   341 	$(FIND) . -name '*~' -exec $(RM) {} \;
   342 	$(FIND) -name '*.[oa]' -exec $(RM) {} \;
   342 	$(FIND) . -name '*.[oa]' -exec $(RM) {} \;
   343 	$(FIND) -name '*.gcov' -exec $(RM) {} \;
   343 	$(FIND) . -name '*.gcov' -exec $(RM) {} \;
   344 	$(FIND) -name '*.gcda' -exec $(RM) {} \;
   344 	$(FIND) . -name '*.gcda' -exec $(RM) {} \;
   345 	$(FIND) -name '*.gcno' -exec $(RM) {} \;
   345 	$(FIND) . -name '*.gcno' -exec $(RM) {} \;
   346 	$(FIND) -name 'gmon.out' -exec $(RM) {} \;
   346 	$(FIND) . -name 'gmon.out' -exec $(RM) {} \;
   347 endif
   347 endif
   348 	$(RM) $(TARGET)
   348 	$(RM) $(TARGET)
   349 
   349 
   350 beauty:
   350 beauty:
   351 ifdef FIND
   351 ifdef FIND
   352 	$(FIND) -name '*.[ch]' -exec indent {} \;
   352 	$(FIND) . -name '*.[ch]' -exec indent {} \;
   353 	$(FIND) -name '*.[ch]' -exec eraser {} \;
   353 	$(FIND) . -name '*.[ch]' -exec eraser {} \;
   354 	$(FIND) -name '*.java' -exec eraser {} \;
   354 	$(FIND) . -name '*.java' -exec eraser {} \;
   355 	$(FIND) -name 'Makefile*' -exec eraser {} \;
   355 	$(FIND) . -name 'Makefile*' -exec eraser {} \;
   356 endif
   356 endif
   357 	@make clean
   357 	@make clean