ftilmann / latexdiff

Compares two latex files and marks up significant differences between them. Releases on www.ctan.org and mirrors
GNU General Public License v3.0
513 stars 72 forks source link

'make install' is not portable #230

Closed dmacks closed 2 years ago

dmacks commented 3 years ago

Building latex-1.3.1.1 on OS X fails during the various 'make install...' recipes, for example:

make install-man INSTALLMANPATH=/sw/build.build/root-latexdiff-1.3.1.1-1/sw/share/man
install -m 644 -D -t /sw/build.build/root-latexdiff-1.3.1.1-1/sw/share/man/man1 latexrevise.1 latexdiff.1 latexdiff-vc.1
install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [Makefile:29: install-man] Error 64

Apple's BSDish install does not support the -D or -t flags. To improve portability, use a separate mkdir -p command, and use the pattern install [filenames] [directory] instead of an explicit directory flag earlier in the command.

dmacks commented 3 years ago

See for example the bulk of our patch in fink: https://github.com/fink/fink-distributions/blob/b9153215a0e309388a9d31cd93b350f1ba176d8f/10.9-libcxx/stable/main/finkinfo/text/latexdiff.patch