projects
/
cdsspec-compiler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04f478b
)
Makefile: add PHONY targets
author
Brian Norris
<banorris@uci.edu>
Thu, 13 Sep 2012 23:03:23 +0000
(16:03 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 13 Sep 2012 23:03:23 +0000
(16:03 -0700)
Just in case there ever are files named clean, mrclean, etc.
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index a0608b5dadd49e2376db260c165fd3b9cce71678..53b0331f2a250f7a18af120f87929b4cee605fdd 100644
(file)
--- 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)