Update Build System

This commit is contained in:
Kim Wittenburg
2018-10-16 19:34:54 +02:00
parent 9043713491
commit bb4ab9d9e4
2 changed files with 16 additions and 15 deletions

View File

@@ -5,20 +5,25 @@ CLASS_NAME = uhhassignment
INDEX_NAME = gind
GLOSSARY_NAME = gglo
dist: clean doc package cleantmp
.PHONY: all clean cleandist
doc:
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
package:
uhhassignment.cls: uhhassignment.ins uhhassignment.dtx
$(TEXENGINE) $(CLASS_NAME).ins
clean cleantmp:
cleanall: clean
rm -f *.pdf *.cls
cleantmp:
rm -f *.log *.aux *.log *.glo *.gls *.hd *.idx *.ilg *.ind *.out *.toc
clean:
rm -f *.log *.aux *.log *.glo *.gls *.hd *.idx *.ilg *.ind *.out *.toc *.fls *.fdb_latexmk