From: Brian Norris Date: Thu, 13 Sep 2012 23:03:23 +0000 (-0700) Subject: Makefile: add PHONY targets X-Git-Tag: pldi2013~190^2~5 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=commitdiff_plain;h=57d7975634e97da2d32f95054dccf40ca871e558 Makefile: add PHONY targets Just in case there ever are files named clean, mrclean, etc. --- diff --git a/Makefile b/Makefile index a0608b5..53b0331 100644 --- a/Makefile +++ b/Makefile @@ -44,15 +44,21 @@ malloc.o: malloc.c %.o: %.cc $(CXX) -fPIC -c $< $(CPPFLAGS) +PHONY += clean clean: rm -f *.o *.so $(MAKE) -C $(TESTS_DIR) clean +PHONY += mrclean mrclean: clean rm -rf docs -tags:: +PHONY += tags +tags: ctags -R -tests:: $(LIB_SO) +PHONY += tests +tests: $(LIB_SO) $(MAKE) -C $(TESTS_DIR) + +.PHONY: $(PHONY)