From 515b86b5bf855259d9dab8092a8e3721b70eb9ed Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Sat, 8 Dec 2007 03:55:00 +0000 Subject: [PATCH] Added relink and binclean targets. --- samples/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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.