AC_INIT([tinc], m4_esyscmd_s((git describe || echo UNKNOWN) | sed 's/release-//'))
AC_CONFIG_SRCDIR([src/tincd.c])
AC_GNU_SOURCE
-AM_INIT_AUTOMAKE([std-options subdir-objects nostdinc -Wall])
+AM_INIT_AUTOMAKE([std-options subdir-objects nostdinc silent-rules -Wall])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
+AM_SILENT_RULES([yes])
# Enable GNU extensions.
# Define this here, not in acconfig's @TOP@ section, since definitions
# see GNUmakefile and Makefile.maint.
sample-config.tar.gz: sample-config
- GZIP=$(GZIP_ENV) $(AMTAR) chozf $@ --exclude .svn $<
+ $(AM_V_GEN)GZIP=$(GZIP_ENV) $(AMTAR) chozf $@ --exclude .svn $<
tincd.8.html: tincd.8
- w3mman2html $? > $@
+ $(AM_V_GEN)w3mman2html $? > $@
tinc.8.html: tinc.8
- w3mman2html $? > $@
+ $(AM_V_GEN)w3mman2html $? > $@
tinc-gui.8.html: tinc-gui.8
- w3mman2html $? > $@
+ $(AM_V_GEN)w3mman2html $? > $@
tinc.conf.5.html: tinc.conf.5
- w3mman2html $? > $@
+ $(AM_V_GEN)w3mman2html $? > $@
substitute = sed \
-e s,'@PACKAGE\@',"$(PACKAGE)",g \
-e s,'@localstatedir\@',"$(localstatedir)",g
tincd.8: tincd.8.in
- $(substitute) $? > $@
+ $(AM_V_GEN)$(substitute) $? > $@
tinc.8: tinc.8.in
- $(substitute) $? > $@
+ $(AM_V_GEN)$(substitute) $? > $@
tinc-gui.8: tinc-gui.8.in
- $(substitute) $? > $@
+ $(AM_V_GEN)$(substitute) $? > $@
tinc.conf.5: tinc.conf.5.in
- $(substitute) $? > $@
+ $(AM_V_GEN)$(substitute) $? > $@
tincinclude.texi: tincinclude.texi.in
- $(substitute) $? > $@
+ $(AM_V_GEN)$(substitute) $? > $@
tinc.texi: tincinclude.texi
## Make sure version.c is always rebuilt with the latest git information
.PHONY: ${srcdir}/version.c version_git.h
version_git.h:
- echo >$@
- -(cd $(srcdir) && git describe) && echo '#define GIT_DESCRIPTION "'`(cd $(srcdir) && git describe) | sed 's/release-//'`'"' >$@
+ $(AM_V_GEN)echo >$@
+ @-(cd $(srcdir) && git describe >/dev/null) && echo '#define GIT_DESCRIPTION "'`(cd $(srcdir) && git describe) | sed 's/release-//'`'"' >$@ ||:
${srcdir}/version.c: version_git.h
if LINUX