summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/hwpf/makefile')
-rw-r--r--src/usr/hwpf/makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/usr/hwpf/makefile b/src/usr/hwpf/makefile
index 55de95dc0..693422150 100644
--- a/src/usr/hwpf/makefile
+++ b/src/usr/hwpf/makefile
@@ -1,14 +1,21 @@
ROOTPATH = ../../..
MODULE = hwpf
-GENFILES = fapiHwpReturnCodes.H fapiAttributeIds.H
+GENFILES = gen_errfiles fapiAttributeIds.H
SUBDIRS = fapi.d hwp.d plat.d test.d
include ${ROOTPATH}/config.mk
-${GENDIR}/fapiHwpReturnCodes.H : fapi/fapiParseErrorInfo.pl hwp/fapiHwpErrorInfo.xml
- $< ${GENDIR} $(filter-out $<,$^)
+# fapiParseErrorInfo.pl produces multiple output files. Use a dummy target to
+# create a single rule to create all files so that the script is only run once
+# (instead of once for each output file which could fail in a parallel build).
+# The disadvantage is that the script is always run, even if there are no
+# updates, but it is safe and there is no easy solution
+${GENDIR}/gen_errfiles : fapi/fapiParseErrorInfo.pl hwp/fapiHwpErrorInfo.xml
+ $< ${GENDIR} $(filter-out $<,$^)
+# fapiParseAttributeInfo.pl produces a single output file so a standard rule
+# will work
${GENDIR}/fapiAttributeIds.H : fapi/fapiParseAttributeInfo.pl hwp/fapiHwpAttributeInfo.xml
- $< ${GENDIR} $(filter-out $<,$^)
+ $< ${GENDIR} $(filter-out $<,$^)
OpenPOWER on IntegriCloud