summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-01-25 10:50:23 -0600
committerRatan Gupta <ratagupt@in.ibm.com>2017-02-01 12:49:18 +0530
commit92cea96ccc7b6a7dc52ed0d64356fc67ab1422c1 (patch)
tree64a2cae97b9d00a4e4d8d23f48f4bfaf0e4dd8a0 /Makefile.am
parent0f2e7fe1bf008b96e5ea7da4dcf8d978c854eeb6 (diff)
downloadipmi-fru-parser-92cea96ccc7b6a7dc52ed0d64356fc67ab1422c1.zip
ipmi-fru-parser-92cea96ccc7b6a7dc52ed0d64356fc67ab1422c1.tar.gz
build: add rule to generate fru-gen.hpp
fru-gen.hpp needs as input a YAML file. Enable this to be provided via autotools configuration. Change-Id: I586c14651840b6a9697a93261f79c2a48f14071f Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 1fbd9c9..49c254d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,8 @@
+BUILT_SOURCES=fru-gen.hpp
AM_DEFAULT_SOURCE_EXT = .cpp
+CLEANFILES=$(BUILT_SOURCES)
+
sbin_PROGRAMS = phosphor-read-eeprom
phosphor_read_eeprom_SOURCES = readeeprom.cpp argument.cpp
@@ -19,3 +22,5 @@ libstrgfnhandler_la_SOURCES = strgfnhandler.cpp
libstrgfnhandler_la_LDFLAGS = -version-info 1:0:0 -shared
libstrgfnhandler_la_LIBADD = libwritefrudata.la
+fru-gen.hpp:
+ $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-hpp
OpenPOWER on IntegriCloud