From 57d7975634e97da2d32f95054dccf40ca871e558 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 13 Sep 2012 16:03:23 -0700 Subject: [PATCH] Makefile: add PHONY targets Just in case there ever are files named clean, mrclean, etc. --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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) -- 2.34.1