mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
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:
parent
d511a71daa
commit
8ff1094823
@ -1,16 +1,16 @@
|
|||||||
sbin_SCRIPTS = _ipsec
|
sbin_SCRIPTS = _ipsec
|
||||||
CLEANFILES = _ipsec _ipsec.8
|
CLEANFILES = _ipsec _ipsec.8
|
||||||
dist_man8_MANS = _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 \
|
sed \
|
||||||
-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
|
-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
|
||||||
-e "s:@IPSEC_SCRIPT@:$(ipsec_script):g" \
|
-e "s:@IPSEC_SCRIPT@:$(ipsec_script):g" \
|
||||||
-e "s:@IPSEC_SCRIPT_UPPER@:$(ipsec_script_upper):g" \
|
-e "s:@IPSEC_SCRIPT_UPPER@:$(ipsec_script_upper):g" \
|
||||||
$< > $@
|
$(srcdir)/$@.in > $@
|
||||||
|
|
||||||
_ipsec : ipsec.in
|
_ipsec : _ipsec.in
|
||||||
sed \
|
sed \
|
||||||
-e "s:@IPSEC_SHELL@:/bin/sh:" \
|
-e "s:@IPSEC_SHELL@:/bin/sh:" \
|
||||||
-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
|
-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
|
||||||
@ -21,7 +21,7 @@ _ipsec : ipsec.in
|
|||||||
-e "s:@IPSEC_SBINDIR@:$(sbindir):" \
|
-e "s:@IPSEC_SBINDIR@:$(sbindir):" \
|
||||||
-e "s:@IPSEC_CONFDIR@:$(sysconfdir):" \
|
-e "s:@IPSEC_CONFDIR@:$(sysconfdir):" \
|
||||||
-e "s:@IPSEC_PIDDIR@:$(piddir):" \
|
-e "s:@IPSEC_PIDDIR@:$(piddir):" \
|
||||||
$< > $@
|
$(srcdir)/$@.in > $@
|
||||||
chmod +x $@
|
chmod +x $@
|
||||||
|
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user