diff mbox series

[ndctl,3/4] ndctl/build: Add `header` as a prereq to Make rule where it is consumed.

Message ID 157602780196.1290519.15782744704303465909.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
State New, archived
Headers show
Series [ndctl,1/4] ndctl/build: Do not use `check-news` when `NEWS` file is absent entirely. | expand

Commit Message

Dan Williams Dec. 11, 2019, 1:30 a.m. UTC
From: Auke Kok <auke-jan.h.kok@intel.com>

Ensure that changes to 'header' trigger a rebuild.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Makefile.am b/Makefile.am
index 95950d4f708e..60a1998723c2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,7 +38,7 @@  do_sles_subst = sed -e 's,VERSION,$(VERSION),g' \
 rhel/ndctl.spec: ndctl.spec.in Makefile.am version.m4
 	$(AM_V_GEN)$(MKDIR_P) rhel; $(do_rhel_subst) < $< > $@
 
-sles/ndctl.spec: ndctl.spec.in Makefile.am version.m4
+sles/ndctl.spec: sles/header ndctl.spec.in Makefile.am version.m4
 	$(AM_V_GEN)$(MKDIR_P) sles; cat sles/header $< | $(do_sles_subst) > $@
 
 if ENABLE_BASH_COMPLETION