Build: split API/ACI checks into separate Makefile targets

This is temporary workaround. makeapi/makeaci transitively import
ipaplatform, which will not exist before configure is executed.
On the other hand, configure requires version.m4,
which is generated by current Makefile.

This change works around this chicked-egg problem. It will disappear
when we start using top-level configure to generate top-level Makefile.

https://fedorahosted.org/freeipa/ticket/6418

Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Petr Spacek 2016-10-20 15:26:29 +02:00 committed by David Kupka
parent 1a4f287931
commit 38628e46f0

View File

@ -148,7 +148,7 @@ po-validate:
jslint:
cd install/ui; jsl -nologo -nosummary -nofilelisting -conf jsl.conf || $(LINT_IGNORE_FAIL)
lint: pylint po-validate jslint
lint: apilint acilint pylint po-validate jslint
test:
./make-test
@ -198,10 +198,11 @@ version-update: release-update ipapython/version.py ipaplatform/__init__.py ipas
sed -e s/__VERSION__/$(IPA_VERSION)/ client/version.m4.in \
> client/version.m4
if [ "$(SKIP_API_VERSION_CHECK)" != "yes" ]; then \
./makeapi --validate && \
./makeaci --validate; \
fi
apilint: bootstrap-autogen
./makeapi --validate
acilint: bootstrap-autogen
./makeaci --validate
server: version-update
cd ipaserver && $(PYTHON) setup.py build