summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2017-02-02 11:57:39 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-02-09 11:45:01 +0000
commitd6f8a360fa246c65149e3b249158cb2ee68bfa32 (patch)
tree353a930dde25eaf975a50bc1da8c96ccdc183462
parent5d4f2379695f7c28549b107f325e0b0cd43d83b1 (diff)
downloadphosphor-dbus-interfaces-d6f8a360fa246c65149e3b249158cb2ee68bfa32.tar.gz
phosphor-dbus-interfaces-d6f8a360fa246c65149e3b249158cb2ee68bfa32.zip
Install YAML files
Install YAML files when installing the package. Change-Id: I7515fa625a9cb33bc9947f5472a178e38fe9a515 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--Makefile.am5
-rw-r--r--Makefile.yaml.in1
-rw-r--r--configure.ac3
-rwxr-xr-xgenerate_yaml_makefile.sh13
4 files changed, 22 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 354cfc9..f00e7d1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,3 +17,8 @@ clean-local: clean-dbus
-include Makefile.interfaces
+yamldir = ${pkgdatadir}/yaml
+nobase_yaml_DATA = ## Filled in by Makefile.yaml
+
+-include Makefile.yaml
+
diff --git a/Makefile.yaml.in b/Makefile.yaml.in
new file mode 100644
index 0000000..964f971
--- /dev/null
+++ b/Makefile.yaml.in
@@ -0,0 +1 @@
+# Empty file so that 'configure' attempts to generate Makefile.yaml
diff --git a/configure.ac b/configure.ac
index b4bcc07..2618cdb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,6 +40,9 @@ LT_LIB_DLLOAD
# Create configured output
AC_CONFIG_FILES([Makefile.interfaces],
[${srcdir}/generate_makefile.sh ${srcdir} > Makefile.interfaces])
+AC_CONFIG_FILES([Makefile.yaml],
+ [${srcdir}/generate_yaml_makefile.sh ${srcdir} > Makefile.yaml])
+
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([phosphor-dbus-interfaces.pc])
AC_OUTPUT
diff --git a/generate_yaml_makefile.sh b/generate_yaml_makefile.sh
new file mode 100755
index 0000000..a6f014f
--- /dev/null
+++ b/generate_yaml_makefile.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+cd $1
+
+toplevel_dirs=xyz
+all_yaml=`find $toplevel_dirs -name "*.yaml"`
+
+echo "nobase_yaml_DATA = \\"
+for i in ${all_yaml};
+do
+ echo " ${i} \\"
+done
+echo
OpenPOWER on IntegriCloud