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 95d0804..5a93e8f 100644 (file)
--- a/.links
+++ b/.links
@@ -1,2 +1,3 @@
 COPYING
 config/auto-version
+config/confsubst
index a89b137..2b89d59 100644 (file)
@@ -33,6 +33,21 @@ 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.
 
 sbin_PROGRAMS          += yaid