This makes warnings much easier to spot in the build transcript.
CLEANFILES += tripe.pc
tripe.pc: tripe.pc.in Makefile
- $(confsubst) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \
mv $@.new $@
###--------------------------------------------------------------------------
AC_CONFIG_SRCDIR([server/tripe.h])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([foreign])
+mdw_SILENT_RULES
AC_PROG_CC
AM_PROG_CC_C_O
CLEANFILES += tripe-init
tripe-init: tripe-init.in Makefile
- $(confsubst) $(srcdir)/tripe-init.in >$@.new $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/tripe-init.in >$@.new $(SUBSTITUTIONS) && \
chmod +x $@.new && mv $@.new $@
## Configuration file for the script.
CLEANFILES += tripe-keys
tripe-keys: tripe-keys.in Makefile
- $(confsubst) $(srcdir)/tripe-keys.in >$@.new $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/tripe-keys.in >$@.new $(SUBSTITUTIONS) && \
chmod +x $@.new && mv $@.new $@
## Manual pages.
CLEANFILES += tripemon
tripemon: tripemon.in Makefile
- $(confsubst) $(srcdir)/tripemon.in >$@.new $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/tripemon.in >$@.new $(SUBSTITUTIONS) && \
chmod +x $@.new && mv $@.new $@
## Manual page.
EXTRA_DIST += tripe-newpeers.in
tripe-newpeers: tripe-newpeers.in Makefile
- $(confsubst) $(srcdir)/tripe-newpeers.in >$@.new \
- $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/tripe-newpeers.in >$@.new $(SUBSTITUTIONS) && \
chmod +x $@.new && mv $@.new $@
## Manual pages.
EXTRA_DIST += tripe.py.in
tripe.py: tripe.py.in Makefile
- $(confsubst) $(srcdir)/tripe.py.in >$@.new $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/tripe.py.in >$@.new $(SUBSTITUTIONS) && \
mv $@.new $@
## Make sure the modules are compiled.
EXTRA_DIST += connect.8.in
connect: connect.in Makefile
- $(confsubst) $(srcdir)/connect.in >$@.new $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/connect.in >$@.new $(SUBSTITUTIONS) && \
chmod +x $@.new && mv $@.new $@
## Watch for peers arriving and disconnecting.
EXTRA_DIST += watch.8.in
watch: watch.in Makefile
- $(confsubst) $(srcdir)/watch.in >$@.new $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/watch.in >$@.new $(SUBSTITUTIONS) && \
chmod +x $@.new && mv $@.new $@
## Watch D-Bus to keep track of external connectivity.
EXTRA_DIST += conntrack.8.in
conntrack: conntrack.in Makefile
- $(confsubst) $(srcdir)/conntrack.in >$@.new $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/conntrack.in >$@.new $(SUBSTITUTIONS) && \
chmod +x $@.new && mv $@.new $@
## Bring up an interface.
EXTRA_DIST += tripe-ifup.8.in
tripe-ifup: tripe-ifup.in Makefile
- $(confsubst) $(srcdir)/tripe-ifup.in >$@.new $(SUBSTITUTIONS) && \
+ $(SUBST) $(srcdir)/tripe-ifup.in >$@.new $(SUBSTITUTIONS) && \
chmod +x $@.new && mv $@.new $@
###----- That's all, folks --------------------------------------------------
PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
PYTHON=$(PYTHON)
+V_SUBST = $(V_SUBST_$(V))
+V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
+V_SUBST_0 = @echo " SUBST $@";
+SUBST = $(V_SUBST)$(confsubst)
+
###--------------------------------------------------------------------------
### Manpage substitutions.
mandefs = $(top_srcdir)/common/defs.man
makesummary = $(top_srcdir)/common/make-summary
+V_MAN = $(V_MAN_$(V))
+V_MAN_ = $(V_MAN_$(AM_DEFAULT_VERBOSITY))
+V_MAN_0 = @echo " MAN $@";
+
.1.in.1 .5.in.5 .7.in.7 .8.in.8:
- sed '/^\.$$/ d; /^\.\\"/ d' $(mandefs) >$@.defs
- sed -e '/@@@PRE@@@/ {' -e 'r$@.defs' -e 'd' -e '}' $< >$@.merge
- $(confsubst) $@.merge >$@.subst $(SUBSTITUTIONS)
- awk -f $(makesummary) $@.subst >$@.new
- rm -f $@.defs $@.merge $@.subst && mv $@.new $@
+ $(V_MAN)
+ $(AM_V_at)sed '/^\.$$/ d; /^\.\\"/ d' $(mandefs) >$@.defs
+ $(AM_V_at)sed -e '/@@@PRE@@@/ {' -e 'r$@.defs' -e 'd' -e '}' \
+ $< >$@.merge
+ $(AM_V_at)$(confsubst) $@.merge >$@.subst $(SUBSTITUTIONS)
+ $(AM_V_at)awk -f $(makesummary) $@.subst >$@.new
+ $(AM_V_at)rm -f $@.defs $@.merge $@.subst && mv $@.new $@
###----- That's all, folks --------------------------------------------------