mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
Build: properly integrate ipa-version.h.in 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 <mbasti@redhat.com>
This commit is contained in:
parent
a260fd8058
commit
ba6ae666ac
@ -372,6 +372,8 @@ AC_SUBST([NUM_VERSION], [IPA_NUM_VERSION])
|
||||
AC_SUBST(VENDOR_SUFFIX)
|
||||
AC_SUBST([VERSION], [IPA_VERSION])
|
||||
AC_SUBST([GIT_VERSION], [IPA_GIT_VERSION])
|
||||
# used by Makefile.am for files depending on templates
|
||||
AC_SUBST([CONFIG_STATUS])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Finish
|
||||
@ -506,7 +508,6 @@ AC_CONFIG_FILES([
|
||||
daemons/ipa-slapi-plugins/ipa-sidgen/Makefile
|
||||
daemons/ipa-slapi-plugins/ipa-range-check/Makefile
|
||||
daemons/ipa-slapi-plugins/topology/Makefile
|
||||
daemons/ipa-version.h
|
||||
freeipa.spec
|
||||
init/systemd/Makefile
|
||||
init/tmpfilesd/Makefile
|
||||
|
@ -12,10 +12,21 @@ if HAVE_GCC
|
||||
endif
|
||||
export AM_CFLAGS
|
||||
|
||||
nodist_noinst_HEADERS = ipa-version.h
|
||||
noinst_HEADERS = ipa-version.h.in
|
||||
|
||||
SUBDIRS = \
|
||||
. \
|
||||
dnssec \
|
||||
ipa-kdb \
|
||||
ipa-slapi-plugins \
|
||||
ipa-sam \
|
||||
ipa-otpd \
|
||||
$(NULL)
|
||||
|
||||
ipa-version.h: ipa-version.h.in $(top_builddir)/$(CONFIG_STATUS)
|
||||
$(AM_V_GEN)sed \
|
||||
-e 's|@DATA_VERSION[@]|$(DATA_VERSION)|g' \
|
||||
-e 's|@NUM_VERSION[@]|$(NUM_VERSION)|g' \
|
||||
-e 's|@VERSION[@]|$(VERSION)|g' \
|
||||
$< > $@
|
||||
|
Loading…
Reference in New Issue
Block a user