2019-06-17 11:41:05 +00:00
|
|
|
# With autotools, it is not easily possible to generate these defines
|
|
|
|
# from configure.ac.
|
|
|
|
#
|
|
|
|
# See https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html
|
|
|
|
#
|
|
|
|
# With meson-only, they could just be set via config.h.meson
|
2019-09-24 08:23:19 +00:00
|
|
|
config-extra.h: config-extra.h.mk config.h config.status
|
2019-06-17 11:41:05 +00:00
|
|
|
$(AM_V_GEN) \
|
|
|
|
echo "/* Generated by Makefile.am */" >$@ && \
|
|
|
|
echo "#define BINDIR \"$(bindir)\"" >>$@ && \
|
|
|
|
echo "#define DATADIR \"$(datadir)\"" >>$@ && \
|
|
|
|
echo "#define LIBEXECDIR \"$(libexecdir)\"" >>$@ && \
|
|
|
|
echo "#define LOCALSTATEDIR \"$(localstatedir)\"" >>$@ && \
|
|
|
|
echo "#define NMCONFDIR \"$(nmconfdir)\"" >>$@ && \
|
|
|
|
echo "#define NMLIBDIR \"$(nmlibdir)\"" >>$@ && \
|
|
|
|
echo "#define NMLOCALEDIR \"$(nmlocaledir)\"" >>$@ && \
|
|
|
|
echo "#define NMPLUGINDIR \"$(plugindir)\"" >>$@ && \
|
|
|
|
echo "#define NMRUNDIR \"$(nmrundir)\"" >>$@ && \
|
|
|
|
echo "#define NMSTATEDIR \"$(nmstatedir)\"" >>$@ && \
|
|
|
|
echo "#define NMVPNDIR \"$(pkglibdir)\"" >>$@ && \
|
|
|
|
echo "#define NM_BUILD_BUILDDIR \"$(abs_builddir)\"" >>$@ && \
|
|
|
|
echo "#define NM_BUILD_SRCDIR \"$(abs_srcdir)\"" >>$@ && \
|
|
|
|
echo "#define PPPD_PLUGIN_DIR \"$(PPPD_PLUGIN_DIR)\"" >>$@ && \
|
|
|
|
echo "#define PREFIX \"$(prefix)\"" >>$@ && \
|
|
|
|
echo "#define RUNSTATEDIR \"$(runstatedir)\"" >>$@ && \
|
|
|
|
echo "#define SYSCONFDIR \"$(sysconfdir)\"" >>$@ && \
|
|
|
|
true
|