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

@@ -1,16 +1,12 @@
image: blang/latex image: blang/latex:ctanfull
stages:
- build
uhhassignment: uhhassignment:
stage: build stage: build
script: script:
# Build the actual *.cls file - make all
- pdflatex uhhassignment.ins
# Build the documentation files
- pdflatex uhhassignment.dtx
- makeindex -s gind.ist uhhassignment
- makeindex -s gglo.ist -o uhhassignment.gls uhhassignment.glo
- pdflatex uhhassignment.dtx
- pdflatex uhhassignment.dtx
artifacts: artifacts:
paths: paths:
- "uhhassignment.cls" - "uhhassignment.cls"

View File

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