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

Reid Spencer reid at x10sys.com
Mon Nov 22 22:00:04 PST 2004



Changes in directory llvm:

Makefile.rules updated: 1.238 -> 1.239
---
Log message:

Allow configuration files to be themselves configured and found in the
OBJ dir instead of only in the SRC dir.


---
Diffs of the changes:  (+7 -1)

Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.238 llvm/Makefile.rules:1.239
--- llvm/Makefile.rules:1.238	Thu Nov 18 14:04:39 2004
+++ llvm/Makefile.rules	Mon Nov 22 23:59:53 2004
@@ -432,7 +432,13 @@
 install-local:: $(sysconfdir) $(CONFIG_FILES)
 	$(Echo) Installing Configuration Files To $(sysconfdir)
 	$(Verb)for file in $(CONFIG_FILES); do \
-		$(INSTALL) $(BUILD_SRC_DIR)/$${file} $(sysconfdir) ; \
+          if test -f $(BUILD_OBJ_DIR)/$${file} ; then \
+            $(INSTALL) $(BUILD_OBJ_DIR)/$${file} $(sysconfdir) ; \
+          elif test -f $(BUILD_SRC_DIR)/$${file} ; then \
+            $(INSTALL) $(BUILD_SRC_DIR)/$${file} $(sysconfdir) ; \
+          else \
+            $(ECHO) Error: cannot find config file $${file}. ; \
+          fi \
 	done
 
 uninstall-local::






More information about the llvm-commits mailing list