From d484f44e534d705aea9fc8dc32c03f87b4869dd5 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sun, 21 Oct 2012 15:12:41 +0100 Subject: [PATCH] Makefile.am: Include `confsubst' machinery. Organization: Straylight/Edgeware From: Mark Wooding --- .links | 1 + Makefile.am | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.links b/.links index 95d0804..5a93e8f 100644 --- a/.links +++ b/.links @@ -1,2 +1,3 @@ COPYING config/auto-version +config/confsubst diff --git a/Makefile.am b/Makefile.am index a89b137..2b89d59 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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. -- [mdw]