make clean now uses find to locate all object files

This commit is contained in:
Joe Thornber 2013-06-19 13:10:12 +01:00
parent 3821dfefc0
commit 3bfae3461e

View File

@ -226,7 +226,9 @@ DEPEND_FILES=\
.PHONY: clean distclean .PHONY: clean distclean
clean: clean:
$(RM) */*.o unit-tests/*.o $(DEPEND_FILES) unit-tests/*.gmo $(TEST_PROGRAMS) $(PROGRAMS) $(OBJECTS) $(GMOCK_OBJECTS) lib/*.a find . -name \*.o -delete
find . -name \*.gmo -delete
$(RM) $(DEPEND_FILES) $(TEST_PROGRAMS) $(PROGRAMS) $(GMOCK_OBJECTS) lib/*.a
distclean: clean distclean: clean
$(RM) config.cache config.log config.status configure.h version.h Makefile unit-tests/Makefile $(RM) config.cache config.log config.status configure.h version.h Makefile unit-tests/Makefile