mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
504f441707
install-exec and bdist_wheel also depend on version.py. Let's ensure that version.py is correctly generated when installing or building packages. Yes, make is clever and correctly merges dependencies with rules from included make files. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Milan Kubik <mkubik@redhat.com>
17 lines
438 B
Makefile
17 lines
438 B
Makefile
include $(top_srcdir)/Makefile.python.am
|
|
|
|
EXTRA_DIST = version.py.in
|
|
|
|
all-local: version.py
|
|
dist-hook: version.py
|
|
install-exec-local: version.py
|
|
bdist_wheel: 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' \
|
|
$< > $@
|