summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index b062427208..a4bdb1c93a 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -455,6 +455,22 @@ all install clean test bytecode stripped-bytecode install-bytecode::
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:
#