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 --- Makefile.am | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index ad0ccd349..56521e4e8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -127,11 +127,11 @@ endif WITH_JSLINT lint: acilint apilint $(POLINT_TARGET) $(PYLINT_TARGET) $(JSLINT_TARGET) .PHONY: acilint -acilint: +acilint: $(top_builddir)/ipapython/version.py cd $(srcdir); ./makeaci --validate .PHONY: apilint -apilint: +apilint: $(top_builddir)/ipapython/version.py cd $(srcdir); ./makeapi --validate .PHONY: polint @@ -142,8 +142,11 @@ polint: # folders rpmbuild, freeipa-* and dist. Skip (match, but don't print) .*, # *.in, *~. Finally print all python files, including scripts that do not # have python extension. -.PHONY: pylint -pylint: +.PHONY: pylint $(top_builddir)/ipapython/version.py +$(top_builddir)/ipapython/version.py: + (cd $(top_builddir)/ipapython && make version.py) + +pylint: $(top_builddir)/ipapython/version.py FILES=`find $(top_srcdir) \ -type d -exec test -e '{}/__init__.py' \; -print -prune -o \ -path './rpmbuild' -prune -o \ -- cgit