[llvm-commits] CVS: llvm/Makefile.common

John Criswell criswell at choi.cs.uiuc.edu
Tue Jun 24 11:01:01 PDT 2003


Changes in directory llvm:

Makefile.common updated: 1.88.2.1 -> 1.88.2.2

---
Log message:

Added some code from the GNU Make manual that prevents dependencies from
being generated if the user is attempting to do a make clean.


---
Diffs of the changes:

Index: llvm/Makefile.common
diff -u llvm/Makefile.common:1.88.2.1 llvm/Makefile.common:1.88.2.2
--- llvm/Makefile.common:1.88.2.1	Mon Jun 23 14:11:41 2003
+++ llvm/Makefile.common	Tue Jun 24 11:00:01 2003
@@ -708,6 +708,12 @@
 	$(VERB) $(RM) -f core core.[0-9][0-9]* *.o *.d *.so *~ *.flc
 	$(VERB) $(RM) -f $(LEX_OUTPUT) $(YACC_OUTPUT)
 
+###########################################################################
+# C/C++ Dependencies
+#	Define variables and rules that generate header file dependencies
+#	from C/C++ source files.
+###########################################################################
+
 # If dependencies were generated for the file that included this file,
 # include the dependancies now...
 #
@@ -724,6 +730,12 @@
 $(BUILD_OBJ_DIR)/Depend/%.d: $(SourceDir)%.c $(BUILD_OBJ_DIR)/Depend/.dir
 	$(VERB) $(DependC) $< | $(SED) 's|$*\.o *|Release/& Profile/& Debug/& Depend/$(@F)|g' > $@
 
+#
+# Include dependencies generated from C/C++ source files, but not if we
+# are cleaning (this example taken from the GNU Make Manual).
+#
+ifneq ($(MAKECMDGOALS),clean)
 ifneq ($(SourceDepend),)
 -include $(SourceDepend)
+endif
 endif





More information about the llvm-commits mailing list