From e3a01af49b01b870dd7739bf60e7be4621754c5a Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Mon, 15 May 2017 17:09:04 -0400 Subject: pdmgen: Update script options Add an option for specifying an alternate template for testcases. Update the output option to include the desired output filename as well as the directory. Add an option for specifying the mako template search path. Change-Id: I88634fee193409b25988eb1e7d7680aa866cc2e9 Signed-off-by: Brad Bishop --- src/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 6afb7b9..fcb79e0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -19,4 +19,9 @@ BUILT_SOURCES = generated.cpp CLEANFILES = generated.cpp generated.cpp: - $(AM_V_GEN)$(PYTHON) ${srcdir}/pdmgen.py generate-cpp -d ${srcdir}/example -o ${builddir} + $(AM_V_GEN)$(PYTHON) ${top_srcdir}/src/pdmgen.py \ + -t generated.mako.cpp \ + -p "${srcdir}" \ + -d ${srcdir}/example \ + -o ${builddir}/$@ \ + generate-cpp -- cgit v1.2.1