diff mbox

[ndctl,1/5] ndctl: rebuild libndctl.h when libndctl.h.in changes

Message ID 20160407010704.30641.88286.stgit@dwillia2-desk3.jf.intel.com (mailing list archive)
State Accepted
Commit 194a10863464
Headers show

Commit Message

Dan Williams April 7, 2016, 1:07 a.m. UTC
Since libnctl.h is build via an AC_CONFIG_COMMANDS() statement we want
configure to re-run if libndctl.h.in is changed.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 Makefile.am |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Johannes Thumshirn April 7, 2016, 8:29 a.m. UTC | #1
On Mittwoch, 6. April 2016 18:07:04 CEST Dan Williams wrote:
> Since libnctl.h is build via an AC_CONFIG_COMMANDS() statement we want
> configure to re-run if libndctl.h.in is changed.
> 
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
> ---

Looks good,
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
diff mbox

Patch

diff --git a/Makefile.am b/Makefile.am
index 7de3d3c3c9eb..379f6404671f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,7 +29,9 @@  AM_LDFLAGS = \
 	-Wl,--gc-sections \
 	-Wl,--as-needed
 
-BUILT_SOURCES = $(top_srcdir)/version.m4
+BUILT_SOURCES = $(top_srcdir)/version.m4 $(top_srcdir)/lib/ndctl/libndctl.h
+$(top_srcdir)/lib/ndctl/libndctl.h: $(top_srcdir)/lib/ndctl/libndctl.h.in
+	touch $(top_srcdir)/version.m4
 $(top_srcdir)/version.m4: FORCE
 	$(AM_V_GEN)$(top_srcdir)/git-version-gen