#!/usr/bin/make -f
# Very small script to byte-compile hyperlatex1.el
# Erick Branderhorst <branderhorst@heel.fgg.eur.nl>

	
BIN	=	$(prefix)/bin
LIB	=	$(prefix)/lib
DOC	=	$(prefix)/doc
INST_BIN=	install -g root -o root -m 755
INST_DIR=	install -g root -o root -d -m 755
INST_DAT=	install -g root -o root -m 644

%.elc: %.el
	emacs -batch -q -no-site-file -l $< -f hyperlatex-compile >/dev/null 2>/dev/null

all: hyperlatex1.elc

install:
	$(INST_DIR)			$(BIN)
	$(INST_BIN) hyperlatex		$(BIN)
	$(INST_BIN) ps2gif		$(BIN)
	$(INST_DIR)			$(LIB)/emacs/site-lisp/hyperlatex
	$(INST_DAT) hyperlatex.el	$(LIB)/emacs/site-lisp/hyperlatex
	$(INST_DAT) hyperlatex1.el	$(LIB)/emacs/site-lisp/hyperlatex
	$(INST_DAT) hyperlatex1.elc	$(LIB)/emacs/site-lisp/hyperlatex
	$(INST_DIR) 			$(DOC)/hyperlatex
	$(INST_DAT) README		$(DOC)/hyperlatex/README
	$(INST_DAT) debian.makedoc	$(DOC)/hyperlatex/Makefile
	$(INST_DAT) hyperlatex.tex	$(DOC)/hyperlatex
	$(INST_DAT) hyperlatex.ind	$(DOC)/hyperlatex
	$(INST_DAT) *.xbm		$(DOC)/hyperlatex
	$(INST_DAT) hyperdebian.*	$(DOC)/hyperlatex
	$(INST_DIR)			$(LIB)/texmf/tex/latex/misc
	$(INST_DAT) hyperlatex.sty	$(LIB)/texmf/tex/latex/misc

clean:
	rm -f *.elc *~ ./#* *.log *.dvi



