From 6fcfe689f47a02df023de69f62c889d9b4dc26fe Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Tue, 22 Nov 2016 17:00:04 +0100 Subject: Build: properly integrate version.py into build system AC_CONFIG_FILES in configure.ac works well only with Makefiles. Other files have to be handled by Makefile.am so depedencies are tracked properly. https://fedorahosted.org/freeipa/ticket/6498 Reviewed-By: Martin Basti --- ipapython/Makefile.am | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ipapython') diff --git a/ipapython/Makefile.am b/ipapython/Makefile.am index 8be72b25d..bf2538a5b 100644 --- a/ipapython/Makefile.am +++ b/ipapython/Makefile.am @@ -1 +1,14 @@ include $(top_srcdir)/Makefile.python.am + +EXTRA_DIST = version.py.in + +all-local: version.py +dist-hook: version.py + +version.py: version.py.in $(top_builddir)/$(CONFIG_STATUS) + $(AM_V_GEN)sed \ + -e 's|@API_VERSION[@]|$(API_VERSION)|g' \ + -e 's|@NUM_VERSION[@]|$(NUM_VERSION)|g' \ + -e 's|@VERSION[@]|$(VERSION)|g' \ + -e 's|@VENDOR_SUFFIX[@]|$(VENDOR_SUFFIX)|g' \ + $< > $@ -- cgit