File: Makefile

package info (click to toggle)
hyperlatex 2.5-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 480 kB
  • ctags: 288
  • sloc: lisp: 2,291; sh: 180; makefile: 86; awk: 21
file content (30 lines) | stat: -rw-r--r-- 863 bytes parent folder | download
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