mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-26 17:01:14 -06:00
abf25d3cb6
Replace the placeholder with the actual value during build. This fixes the client incorrectly assuming that the default version of all plugins is 1. https://pagure.io/freeipa/issue/6597 Reviewed-By: Martin Basti <mbasti@redhat.com>
24 lines
673 B
Makefile
24 lines
673 B
Makefile
include $(top_srcdir)/Makefile.python.am
|
|
|
|
MOSTLYCLEANFILES = .DEFAULT_PLUGINS
|
|
|
|
EXTRA_DIST = version.py.in
|
|
|
|
all-local: version.py
|
|
dist-hook: version.py
|
|
install-exec-local: version.py
|
|
bdist_wheel: version.py
|
|
|
|
.DEFAULT_PLUGINS: $(top_srcdir)/API.txt
|
|
$(AM_V_GEN)awk '$$1 == "default:" { print $$2 }' $< >$@
|
|
|
|
version.py: version.py.in .DEFAULT_PLUGINS $(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' \
|
|
-e '/@DEFAULT_PLUGINS[@]/r .DEFAULT_PLUGINS' \
|
|
-e '/@DEFAULT_PLUGINS[@]/d' \
|
|
$< > $@
|