Files
uhhassignment/Makefile
2018-10-16 19:34:54 +02:00

30 lines
759 B
Makefile

TEXENGINE = pdflatex
MAKEINDEX = makeindex
CLASS_NAME = uhhassignment
INDEX_NAME = gind
GLOSSARY_NAME = gglo
.PHONY: all clean cleandist
all: cleanall uhhassignment.cls uhhassignment.pdf clean
test.pdf: uhhassignment.cls test.tex
latexmk -pdf test.tex
uhhassignment.pdf: uhhassignment.ins uhhassignment.dtx
$(TEXENGINE) $(CLASS_NAME).dtx
$(MAKEINDEX) -s $(INDEX_NAME).ist $(CLASS_NAME)
$(MAKEINDEX) -s $(GLOSSARY_NAME).ist -o $(CLASS_NAME).gls $(CLASS_NAME).glo
$(TEXENGINE) $(CLASS_NAME).dtx
$(TEXENGINE) $(CLASS_NAME).dtx
uhhassignment.cls: uhhassignment.ins uhhassignment.dtx
$(TEXENGINE) $(CLASS_NAME).ins
cleanall: clean
rm -f *.pdf *.cls
clean:
rm -f *.log *.aux *.log *.glo *.gls *.hd *.idx *.ilg *.ind *.out *.toc *.fls *.fdb_latexmk