summaryrefslogtreecommitdiff
path: root/support/latexdiff/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/latexdiff/Makefile
Initial commit
Diffstat (limited to 'support/latexdiff/Makefile')
-rw-r--r--support/latexdiff/Makefile64
1 files changed, 64 insertions, 0 deletions
diff --git a/support/latexdiff/Makefile b/support/latexdiff/Makefile
new file mode 100644
index 0000000000..143ddd213c
--- /dev/null
+++ b/support/latexdiff/Makefile
@@ -0,0 +1,64 @@
+# Modify these paths to the requirements of your own system
+# For the current setting you will need root permission but
+# it is perfectly acceptable to choose user directories
+#
+INSTALLPATH = /usr/local
+INSTALLMANPATH = $(INSTALLPATH)/man
+INSTALLEXECPATH = $(INSTALLPATH)/bin
+
+default:
+ @echo "To install stand-alone version type: make install"
+ @echo " (Note the standard version requires prior installation"
+ @echo " of the PERL package Algorithm::Diff available from "
+ @echo " the PERL archive www.cpan.org)"
+ @echo " "
+ @echo "To install fast version (using UNIX diff) type: make install fast "
+ @echo " "
+ @echo "To install the version which uses the system Algorithm::Diff package type: make install-ext"
+ @echo " "
+
+install: install-so
+
+install-ext: install-latexdiff install-latexrevise install-latexdiff-vc install-man
+
+install-so: install-latexdiff-so install-latexrevise install-latexdiff-vc install-man
+
+install-fast: install-latexdiff-fast install-latexrevise install-latexdiff-vc install-man
+
+install-man:
+ install -m 644 -D -t $(INSTALLMANPATH)/man1 latexrevise.1 latexdiff.1 latexdiff-vc.1
+
+install-latexdiff:
+ install -D -t $(INSTALLEXECPATH) latexdiff
+
+install-latexdiff-so:
+ if [ -e $(INSTALLEXECPATH)/latexdiff ]; then rm $(INSTALLEXECPATH)/latexdiff; fi
+ install -D -t $(INSTALLEXECPATH) latexdiff-so
+ cd $(INSTALLEXECPATH); ln -s latexdiff-so latexdiff
+
+install-latexdiff-fast:
+ if [ -e $(INSTALLEXECPATH)/latexdiff ]; then rm $(INSTALLEXECPATH)/latexdiff; fi
+ install -D -t $(INSTALLEXECPATH) latexdiff-fast
+ cd $(INSTALLEXECPATH); ln -s latexdiff-fast latexdiff
+
+install-latexrevise:
+ install -D -t $(INSTALLEXECPATH) latexrevise
+
+install-latexdiff-vc:
+ install -D -t $(INSTALLEXECPATH) latexdiff-vc
+ cd $(INSTALLEXECPATH); for vcs in cvs rcs svn git hg ; do if [ -e latexdiff-$$vcs ]; then rm latexdiff-$$vcs; fi; ln -s latexdiff-vc latexdiff-$$vcs ; done
+
+test-ext:
+ @echo "latexdiff example/example-draft.tex example/example-rev.tex (system Algorithm::Diff)"
+ ./latexdiff -V example/example-draft.tex example/example-rev.tex > example/example-diff.tex
+ @echo "Difference file created: example/example-diff.tex"
+
+test-so:
+ @echo "latexdiff example/example-draft.tex example/example-rev.tex (stand-alone version)"
+ ./latexdiff-so -V example/example-draft.tex example/example-rev.tex > example/example-diff.tex
+ @echo "Difference file created: example/example-diff.tex"
+
+test-fast:
+ @echo "latexdiff example/example-draft.tex example/example-rev.tex (stand-alone version)"
+ ./latexdiff-fast -V example/example-draft.tex example/example-rev.tex > example/example-diff.tex
+ @echo "Difference file created: example/example-diff.tex"