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