Install elog parser and mako script for native processing
Installed elog parser and mako scripts are used by repositories
to build elog-errors.hpp for local application specific errors
Change-Id: I2353185d28db59b052d2167d6f37f1b385978bb3
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 1e2106e..dad2319 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+# For target build
+if !INSTALL_SCRIPTS
# export these headers
nobase_include_HEADERS = \
phosphor-logging/log.hpp \
@@ -108,3 +110,11 @@
pkgconfiglib_DATA = phosphor-logging.pc
SUBDIRS = test
+else
+# For native build
+# Export elog-gen parser and mako script
+elogdir = ${datadir}/phosphor-logging/elog
+nobase_elog_DATA = \
+ tools/elog-gen.py \
+ tools/phosphor-logging/templates/elog-gen-template.mako.hpp
+endif