From 84c00e71b70fefca743d5af33b6dfe89da9479d2 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 10 Apr 2013 14:01:41 +0200 Subject: [PATCH 1/5] Provide the --enable-silent-rules ./configure option with automake 1.11 and 1.12 --- configure.in | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.in b/configure.in index 9a00b62567..c287d5d02f 100644 --- a/configure.in +++ b/configure.in @@ -21,6 +21,7 @@ AC_INIT([strongSwan],[5.0.4]) AM_INIT_AUTOMAKE(tar-ustar) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) AC_CONFIG_MACRO_DIR([m4/config]) AC_CONFIG_HEADERS([config.h]) AC_DEFINE([CONFIG_H_INCLUDED], [], [defined if config.h included]) From 9f1dfd88c835dec9dbc1631e4bb3887e62183150 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 10 Apr 2013 14:02:53 +0200 Subject: [PATCH 2/5] Use the GEN silent rule when generating gperf files --- src/libstrongswan/Makefile.am | 1 + src/starter/Makefile.am | 2 +- src/stroke/Makefile.am | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libstrongswan/Makefile.am b/src/libstrongswan/Makefile.am index 8d6c4583a0..6fde15208c 100644 --- a/src/libstrongswan/Makefile.am +++ b/src/libstrongswan/Makefile.am @@ -131,6 +131,7 @@ $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \ $(srcdir)/crypto/proposal/proposal_keywords_static.h + $(AM_V_GEN) \ $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \ $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@ diff --git a/src/starter/Makefile.am b/src/starter/Makefile.am index c220c2e636..2c08db50ec 100644 --- a/src/starter/Makefile.am +++ b/src/starter/Makefile.am @@ -42,6 +42,7 @@ if USE_TOOLS endif keywords.c: $(srcdir)/keywords.txt $(srcdir)/keywords.h + $(AM_V_GEN) \ $(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@ install-exec-local : @@ -55,4 +56,3 @@ install-exec-local : test -e "$(DESTDIR)${sysconfdir}/ipsec.d/reqs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/reqs" || true test -e "$(DESTDIR)${sysconfdir}/ipsec.d/private" || $(INSTALL) -d -m 750 "$(DESTDIR)$(sysconfdir)/ipsec.d/private" || true test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -m 644 $(srcdir)/ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf || true - diff --git a/src/stroke/Makefile.am b/src/stroke/Makefile.am index f93680b64d..2d2d057482 100644 --- a/src/stroke/Makefile.am +++ b/src/stroke/Makefile.am @@ -11,4 +11,5 @@ MAINTAINERCLEANFILES = stroke_keywords.c AM_CFLAGS = -DIPSEC_PIDDIR=\"${piddir}\" stroke_keywords.c: $(srcdir)/stroke_keywords.txt $(srcdir)/stroke_keywords.h + $(AM_V_GEN) \ $(GPERF) -m 10 -D -C -G -t < $(srcdir)/stroke_keywords.txt > $@ From f932677f0c77b5d31b035166f0893e63483b1185 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 10 Apr 2013 14:49:29 +0200 Subject: [PATCH 3/5] Use the GEN silent rule when generating oid database with perl --- src/libstrongswan/Makefile.am | 2 ++ src/libstrongswan/asn1/oid.pl | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstrongswan/Makefile.am b/src/libstrongswan/Makefile.am index 6fde15208c..81e271a8a0 100644 --- a/src/libstrongswan/Makefile.am +++ b/src/libstrongswan/Makefile.am @@ -124,9 +124,11 @@ $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \ $(srcdir)/crypto/proposal/proposal_keywords_static.c $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt + $(AM_V_GEN) \ (cd $(srcdir)/asn1/ && $(PERL) oid.pl) $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt + $(AM_V_GEN) \ (cd $(srcdir)/asn1/ && $(PERL) oid.pl) $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \ diff --git a/src/libstrongswan/asn1/oid.pl b/src/libstrongswan/asn1/oid.pl index ed26febc9b..82100e8aaf 100644 --- a/src/libstrongswan/asn1/oid.pl +++ b/src/libstrongswan/asn1/oid.pl @@ -19,8 +19,6 @@ $copyright="Copyright (C) 2003-2008 Andreas Steffen, Hochschule fuer Technik Rap $automatic="This file has been automatically generated by the script oid.pl"; $warning="Do not edit manually!"; -print "oid.pl generating oid.h and oid.c\n"; - # Generate oid.h open(OID_H, ">oid.h") From 0be946dce3ec58b63f4d5ae33180a82a6f9b64a7 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 10 Apr 2013 15:35:55 +0200 Subject: [PATCH 4/5] Use the GEN silent rule when generating files with sed --- Makefile.am | 2 ++ init/systemd/Makefile.am | 1 + man/Makefile.am | 2 +- src/_updown/Makefile.am | 1 + src/frontends/gnome/Makefile.am | 1 + src/ipsec/Makefile.am | 2 ++ src/libcharon/plugins/maemo/Makefile.am | 2 +- 7 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 8a558c1507..3cd798648b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,11 +17,13 @@ nodist_config_include_HEADERS = config.h endif Android.common.mk : Android.common.mk.in configure.in + $(AM_V_GEN) \ sed \ -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \ $(srcdir)/$@.in > $@ Doxyfile : Doxyfile.in + $(AM_V_GEN) \ sed \ -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \ -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \ diff --git a/init/systemd/Makefile.am b/init/systemd/Makefile.am index bdbf502e4e..e4b7166d66 100644 --- a/init/systemd/Makefile.am +++ b/init/systemd/Makefile.am @@ -5,6 +5,7 @@ CLEANFILES = strongswan.service systemdsystemunit_DATA = strongswan.service strongswan.service : strongswan.service.in + $(AM_V_GEN) \ sed \ -e "s:@SBINDIR@:$(sbindir):" \ -e "s:@IPSEC_SCRIPT@:$(ipsec_script):" \ diff --git a/man/Makefile.am b/man/Makefile.am index ea04303bda..0becd24c7c 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -5,9 +5,9 @@ CLEANFILES = ipsec.conf.5 ipsec.secrets.5 strongswan.conf.5 SUFFIXES = .in .in: + $(AM_V_GEN) \ sed \ -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \ -e "s:@DEV_URANDOM@:$(urandom_device):" \ -e "s:@DEV_RANDOM@:$(random_device):" \ $(srcdir)/$@.in > $@ - diff --git a/src/_updown/Makefile.am b/src/_updown/Makefile.am index 116322e1ef..b6a81f547d 100644 --- a/src/_updown/Makefile.am +++ b/src/_updown/Makefile.am @@ -4,6 +4,7 @@ dist_man8_MANS = _updown.8 EXTRA_DIST = _updown.in _updown : _updown.in + $(AM_V_GEN) \ sed \ -e "s:\@sbindir\@:$(sbindir):" \ -e "s:\@routing_table\@:$(routing_table):" \ diff --git a/src/frontends/gnome/Makefile.am b/src/frontends/gnome/Makefile.am index fb29085a65..1184711770 100644 --- a/src/frontends/gnome/Makefile.am +++ b/src/frontends/gnome/Makefile.am @@ -11,6 +11,7 @@ nmvpnservice_DATA = nm-strongswan-service.name @INTLTOOL_DESKTOP_RULE@ nm-strongswan-service.name: $(srcdir)/nm-strongswan-service.name.in + $(AM_V_GEN) \ sed -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|' \ -e 's|[@]CHARON[@]|$(charon)|' $< >$@ diff --git a/src/ipsec/Makefile.am b/src/ipsec/Makefile.am index 8be28eff8c..73427c0fae 100644 --- a/src/ipsec/Makefile.am +++ b/src/ipsec/Makefile.am @@ -4,6 +4,7 @@ dist_man8_MANS = _ipsec.8 EXTRA_DIST = _ipsec.in _ipsec.8.in Android.mk _ipsec.8 : _ipsec.8.in + $(AM_V_GEN) \ sed \ -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \ -e "s:@IPSEC_SCRIPT@:$(ipsec_script):g" \ @@ -11,6 +12,7 @@ _ipsec.8 : _ipsec.8.in $(srcdir)/$@.in > $@ _ipsec : _ipsec.in + $(AM_V_GEN) \ sed \ -e "s:@IPSEC_SHELL@:/bin/sh:" \ -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \ diff --git a/src/libcharon/plugins/maemo/Makefile.am b/src/libcharon/plugins/maemo/Makefile.am index 0bf7fad5dc..74a019af79 100644 --- a/src/libcharon/plugins/maemo/Makefile.am +++ b/src/libcharon/plugins/maemo/Makefile.am @@ -20,8 +20,8 @@ libstrongswan_maemo_la_LIBADD = ${maemo_LIBS} dbusservice_DATA = org.strongswan.charon.service org.strongswan.charon.service: $(srcdir)/org.strongswan.charon.service.in + $(AM_V_GEN) \ sed -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|' $< >$@ EXTRA_DIST = org.strongswan.charon.service.in CLEANFILES = $(dbusservice_DATA) - From d0f01a581dc2f75691956951b645843a412a7e74 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 10 Apr 2013 15:36:14 +0200 Subject: [PATCH 5/5] Add -s to make if --enable-silent-rules is ./configured --- Makefile.am | 4 ++++ configure.in | 1 + 2 files changed, 5 insertions(+) diff --git a/Makefile.am b/Makefile.am index 3cd798648b..1fc1fcdb31 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,10 @@ if USE_SCRIPTS SUBDIRS += scripts endif +if USE_SILENT_RULES + AM_MAKEFLAGS = -s +endif + ACLOCAL_AMFLAGS = -I m4/config EXTRA_DIST = Doxyfile.in LICENSE Android.common.mk.in Android.common.mk Android.mk diff --git a/configure.in b/configure.in index c287d5d02f..f0a2ec9614 100644 --- a/configure.in +++ b/configure.in @@ -1218,6 +1218,7 @@ AM_CONDITIONAL(USE_IMCV, test x$imcv = xtrue) AM_CONDITIONAL(USE_PTS, test x$pts = xtrue) AM_CONDITIONAL(USE_TROUSERS, test x$tss = xtrousers) AM_CONDITIONAL(MONOLITHIC, test x$monolithic = xtrue) +AM_CONDITIONAL(USE_SILENT_RULES, test x$enable_silent_rules = xyes) AM_CONDITIONAL(UNITTESTS, test x$unit_tests = xtrue) AM_CONDITIONAL(USE_TKM, test x$tkm = xtrue)