Output generated source to builddir
Fix fan monitor and fan control generated source output to be put in the
designated build directory. This corrects the issue where the files are
not regenerated after another compile is instantiated.
Tested:
Files regenerated after `bitbake -c compile phosphor-fan`
Change-Id: I4a07920196cf525e41da316f790e0c19508ea4e9
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/monitor/Makefile.am b/monitor/Makefile.am
index a938e00..9575244 100644
--- a/monitor/Makefile.am
+++ b/monitor/Makefile.am
@@ -31,4 +31,4 @@
-flto
fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py
- $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS)
+ $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS) > ${builddir}/$@