chiark / gitweb /
Makefile.am: Include `confsubst' machinery.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 21 Oct 2012 14:12:41 +0000 (15:12 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 24 Oct 2012 09:24:32 +0000 (10:24 +0100)
.links
Makefile.am

diff --git a/.links b/.links
index 95d08049554200336b2b636a9e75a0111e2be0bc..5a93e8f9465c2bb72ef5908a701696c32e29bb3b 100644 (file)
--- a/.links
+++ b/.links
@@ -1,2 +1,3 @@
 COPYING
 config/auto-version
+config/confsubst
index a89b137219da58008993952477e8d093cd528d33..2b89d59859483da6b05e4690f78af0df30f4f39d 100644 (file)
@@ -32,6 +32,21 @@ MAINTAINERCLEANFILES  =
 sbin_PROGRAMS           =
 man_MANS                =
 
+###--------------------------------------------------------------------------
+### Substitutions.
+
+confsubst               = $(top_srcdir)/config/confsubst
+EXTRA_DIST             += config/confsubst
+
+SUBSTITUTIONS = \
+               prefix=$(prefix) exec_prefix=$(exec_prefix) \
+               sysconfdir=$(sysconfdir)
+
+V_SUBST = $(V_SUBST_$(V))
+V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
+V_SUBST_0 = @echo "  SUBST  $@";
+SUBST = $(V_SUBST)$(confsubst)
+
 ###--------------------------------------------------------------------------
 ### The main server.