Added relink and binclean targets.

v0.27.3
Andreas Huggel 18 years ago
parent 75e47bd878
commit 515b86b5bf

@ -114,13 +114,19 @@ $(BINARY): %: %.o
# ****************************************************************************** # ******************************************************************************
# Targets # Targets
.PHONY: all mostlyclean clean distclean maintainer-clean .PHONY: all relink binclean mostlyclean clean distclean maintainer-clean
ifdef DEP_TRACKING ifdef DEP_TRACKING
# Include targets from dependency files # Include targets from dependency files
-include $(DEP) -include $(DEP)
endif endif
relink: binclean samples
# Remove binaries, e.g., to relink them
binclean:
$(RM) $(EXECUTABLE)
mostlyclean: mostlyclean:
$(RM) core $(RM) core
$(RM) $(CCSRC:.cpp=.ii) $(RM) $(CCSRC:.cpp=.ii)
@ -128,8 +134,7 @@ mostlyclean:
-rmdir .libs -rmdir .libs
$(RM) $(BINOBJ) $(RM) $(BINOBJ)
clean: mostlyclean clean: binclean mostlyclean
$(RM) $(EXECUTABLE)
# Run `make distclean' from the top source directory to also remove # Run `make distclean' from the top source directory to also remove
# files created by configuring the program. # files created by configuring the program.

Loading…
Cancel
Save