Message ID | 154777557208.2031004.4398775156584636337.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [ndctl] ndctl/build: Fix config.h dependency | expand |
diff --git a/ndctl/Makefile.am b/ndctl/Makefile.am index f96f08974aa6..97de1814ba96 100644 --- a/ndctl/Makefile.am +++ b/ndctl/Makefile.am @@ -4,7 +4,7 @@ bin_PROGRAMS = ndctl DISTCLEANFILES = config.h BUILT_SOURCES = config.h -config.h: Makefile +config.h: Makefile.am $(AM_V_GEN) echo "/* Autogenerated by ndctl/Makefile.am */" >$@ $(AM_V_GEN) echo '#define NDCTL_CONF_FILE \ "$(ndctl_monitorconfdir)/$(ndctl_monitorconf)"' >>$@
The config.h file needs to be rebuilt whenever ndctl/Makefile.am changes, not necessarily ndctl/Makefile. This fixes some missed rebuild events when adding more definitions. Reported-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- ndctl/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)