Use the GEN silent rule when generating files with sed

This commit is contained in:
Martin Willi 2013-04-10 15:35:55 +02:00
parent f932677f0c
commit 0be946dce3
7 changed files with 9 additions and 2 deletions

View File

@ -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):" \

View File

@ -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):" \

View File

@ -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 > $@

View File

@ -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):" \

View File

@ -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)|' $< >$@

View File

@ -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):" \

View File

@ -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)