[llvm-commits] CVS: llvm/Makefile.rules
Reid Spencer
reid at x10sys.com
Fri Aug 20 02:20:15 PDT 2004
Changes in directory llvm:
Makefile.rules updated: 1.189 -> 1.190
---
Log message:
Added a set of rules for installing configuration files. You can now say
CONFIG_FILES=a b c
in a Makefile and when you "make install" the files a b and c will get
installed into the $prefix/etc directory.
---
Diffs of the changes: (+16 -0)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.189 llvm/Makefile.rules:1.190
--- llvm/Makefile.rules:1.189 Wed Jul 21 07:47:40 2004
+++ llvm/Makefile.rules Fri Aug 20 04:20:05 2004
@@ -455,6 +455,22 @@
done
endif
+#---------------------------------------------------------
+# Handle the CONFIG_FILES options
+#---------------------------------------------------------
+ifdef CONFIG_FILES
+install:: $(sysconfdir) install-config-files
+
+$(sysconfdir):
+ $(MKDIR) $(sysconfdir)
+
+install-config-files: $(CONFIG_FILES)
+ $(VERB) echo Installing Configuration Files To $(sysconfdir)
+ $(VERB) for file in $(CONFIG_FILES); do \
+ $(INSTALL) $(SourceDir)/$${file} $(sysconfdir) ; \
+ done
+endif
+
###########################################################################
# Library Build Rules:
#
More information about the llvm-commits
mailing list