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.
This commit is contained in:
Tobias Brunner 2012-07-27 13:39:18 +02:00
parent d511a71daa
commit 8ff1094823
3 changed files with 5 additions and 5 deletions

View 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: