1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#!/usr/bin/make -f
# Very small script to byte-compile hyperlatex.el
# Erick Branderhorst <branderhorst@heel.fgg.eur.nl>
# Christian Schwarz <schwarz@debian.org>
%.elc: %.el
emacs=/usr/bin/emacs; \
if [ ! -x $$emacs ]; then \
emacs=/usr/bin/xemacs; \
if [ ! -x $$emacs ]; then \
exit 1; \
fi; \
fi; \
$$emacs -batch -q -no-site-file -l $< -f hyperlatex-compile &>/dev/null
all: hyperlatex.elc html
html: html/hyperlatex.html
html/hyperlatex.html: hyperlatex.tex hyperlatex.elc
touch hyperlatex.ind
latex hyperlatex.tex
makeindex hyperlatex.idx
-mkdir html
PATH=".:$$PATH" HYPERLATEX_PATH="." HYPERLATEX_DIR="." ./hyperlatex -gif hyperlatex.tex
PATH=".:$$PATH" HYPERLATEX_PATH="." HYPERLATEX_DIR="." ./hyperlatex hyperlatex.tex
clean:
rm -rf *.elc *~ ./#* *.log *.dvi *.bak *.ps *.makegif *.aux html \
*.blg *.bbl *.ilg *.idx *.ind
|