From: Tobias Brunner Date: Fri, 27 Jul 2012 11:39:18 +0000 (+0200) Subject: The use of $< in Makefiles is not portable X-Git-Tag: 5.0.1~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ff109482351b23f8f1009c901dcd45b7c341378;p=thirdparty%2Fstrongswan.git The use of $< in Makefiles is not portable It requires GNU make which is not what most people use on e.g. FreeBSD. Fixes #205. --- diff --git a/src/ipsec/Makefile.am b/src/ipsec/Makefile.am index 29e7105337..8be28eff8c 100644 --- a/src/ipsec/Makefile.am +++ b/src/ipsec/Makefile.am @@ -1,16 +1,16 @@ sbin_SCRIPTS = _ipsec CLEANFILES = _ipsec _ipsec.8 dist_man8_MANS = _ipsec.8 -EXTRA_DIST = ipsec.in ipsec.8.in Android.mk +EXTRA_DIST = _ipsec.in _ipsec.8.in Android.mk -_ipsec.8 : ipsec.8.in +_ipsec.8 : _ipsec.8.in sed \ -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \ -e "s:@IPSEC_SCRIPT@:$(ipsec_script):g" \ -e "s:@IPSEC_SCRIPT_UPPER@:$(ipsec_script_upper):g" \ - $< > $@ + $(srcdir)/$@.in > $@ -_ipsec : ipsec.in +_ipsec : _ipsec.in sed \ -e "s:@IPSEC_SHELL@:/bin/sh:" \ -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \ @@ -21,7 +21,7 @@ _ipsec : ipsec.in -e "s:@IPSEC_SBINDIR@:$(sbindir):" \ -e "s:@IPSEC_CONFDIR@:$(sysconfdir):" \ -e "s:@IPSEC_PIDDIR@:$(piddir):" \ - $< > $@ + $(srcdir)/$@.in > $@ chmod +x $@ install-exec-hook: diff --git a/src/ipsec/ipsec.8.in b/src/ipsec/_ipsec.8.in similarity index 100% rename from src/ipsec/ipsec.8.in rename to src/ipsec/_ipsec.8.in diff --git a/src/ipsec/ipsec.in b/src/ipsec/_ipsec.in similarity index 100% rename from src/ipsec/ipsec.in rename to src/ipsec/_ipsec.in