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:
1d5bf75
)
Makefile: don't always rebuild make.deps
author
Brian Norris
<banorris@uci.edu>
Thu, 13 Sep 2012 18:35:48 +0000
(11:35 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 13 Sep 2012 18:35:48 +0000
(11:35 -0700)
The dependencies don't need to be regenerated for "make tags", "make docs",
etc.
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 91acd7e8738d5a626ac90e058494ad24066bdfba..2bd61ce26c0c13b7f87798b671869fea9fc49a6d 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-27,7
+27,10
@@
all: $(LIB_SO) $(DEPS) tests
$(DEPS): $(program_C_SRCS) $(program_H_SRCS)
$(CXX) -MM $(program_C_SRCS) $(CPPFLAGS) > $(DEPS)
+# Only include, rebuild make.deps when it's going to be used
+ifeq ($(MAKECMDGOALS),$(DEPS))
include $(DEPS)
+endif
debug: CPPFLAGS += -DCONFIG_DEBUG
debug: all