]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
The use of $< in Makefiles is not portable
authorTobias Brunner <tobias@strongswan.org>
Fri, 27 Jul 2012 11:39:18 +0000 (13:39 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 27 Jul 2012 11:47:59 +0000 (13:47 +0200)
It requires GNU make which is not what most people use on e.g. FreeBSD.

Fixes #205.

src/ipsec/Makefile.am
src/ipsec/_ipsec.8.in [moved from src/ipsec/ipsec.8.in with 100% similarity]
src/ipsec/_ipsec.in [moved from src/ipsec/ipsec.in with 100% similarity]

index 29e71053371ea0b675c2d3c82756daebbe19b3b0..8be28eff8c198d5d69a08a6d108a1dc599c59e2c 100644 (file)
@@ -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:
similarity index 100%
rename from src/ipsec/ipsec.8.in
rename to src/ipsec/_ipsec.8.in
similarity index 100%
rename from src/ipsec/ipsec.in
rename to src/ipsec/_ipsec.in