Building the manpages fails on macOS in Doc/man because the rule for locarna.1 uses GNU-specific sed -i syntax.
Reproduction
make -C Doc/man
Error
sed -i 's/locarna.bin/locarna/g' locarna.1
sed: 1: "locarna.1": extra characters at the end of l command
make[2]: *** [locarna.1] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Cause
macOS uses BSD sed, where sed -i requires a backup suffix argument. The current rule is:
sed -i 's/locarna.bin/locarna/g' $@
which is valid with GNU sed but not with BSD/macOS sed.
Suggested fix
Use a portable form such as:
sed -i.bak 's/locarna.bin/locarna/g' $@ && rm -f $@.bak
This works on both macOS/BSD sed and GNU sed.
Building the manpages fails on macOS in
Doc/manbecause the rule forlocarna.1uses GNU-specificsed -isyntax.Reproduction
make -C Doc/man
Error
sed -i 's/locarna.bin/locarna/g' locarna.1
sed: 1: "locarna.1": extra characters at the end of l command
make[2]: *** [locarna.1] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Cause
macOS uses BSD sed, where sed -i requires a backup suffix argument. The current rule is:
sed -i 's/locarna.bin/locarna/g' $@which is valid with GNU sed but not with BSD/macOS sed.
Suggested fix
Use a portable form such as:
sed -i.bak 's/locarna.bin/locarna/g' $@ && rm -f $@.bakThis works on both macOS/BSD sed and GNU sed.