switched to latexmk instead of using XeLaTeX directly / removed old build script

This commit is contained in:
Benjamin Weiss 2015-06-15 15:38:01 +02:00
parent 814896eb18
commit dec149ccb7
2 changed files with 7 additions and 13 deletions

View File

@ -3,12 +3,13 @@ DTX = $(wildcard *.dtx)
STY = $(patsubst %.dtx,%.sty,$(wildcard beamer*.dtx)) STY = $(patsubst %.dtx,%.sty,$(wildcard beamer*.dtx))
TEXMFHOME = $(shell kpsewhich -var-value=TEXMFHOME) TEXMFHOME = $(shell kpsewhich -var-value=TEXMFHOME)
INSTALL_DIR = $(TEXMFHOME)/tex/latex/mtheme INSTALL_DIR = $(TEXMFHOME)/tex/latex/mtheme
TEMP_DIR = .temptex
DEMO_SRC = demo.tex DEMO_SRC = demo.tex
DEMO_PDF = demo.pdf DEMO_PDF = demo.pdf
MANUAL_SRC = mtheme.dtx MANUAL_SRC = mtheme.dtx
MANUAL_PDF = mtheme.pdf MANUAL_PDF = mtheme.pdf
TEXC := xelatex -shell-escape TEXC := latexmk -xelatex -output-directory=$(TEMP_DIR)
DOCKER_IMAGE = latex-image DOCKER_IMAGE = latex-image
DOCKER_CONTAINER = latex-container DOCKER_CONTAINER = latex-container
@ -17,19 +18,19 @@ DOCKER_CONTAINER = latex-container
.PHONY: clean install manual sty docker-run docker-rm .PHONY: clean install manual sty docker-run docker-rm
all: demo manual all: sty demo manual
sty: $(DTX) $(INS) sty: $(DTX) $(INS)
@latex $(INS) @latex $(INS)
demo: $(STY) $(DEMO_SRC) demo: $(STY) $(DEMO_SRC)
$(TEXC) $(DEMO_SRC) $(TEXC) $(DEMO_SRC)
@cp $(TEMP_DIR)/$(DEMO_PDF) .
manual: $(MANUAL_SRC) manual: $(MANUAL_SRC)
@mkdir -p .temptex @$(TEXC) $(MANUAL_SRC)
@$(TEXC) -output-directory .temptex $< @cp $(TEMP_DIR)/$(MANUAL_PDF) .
@$(TEXC) -output-directory .temptex $<
@cp .temptex/mtheme.pdf .
clean: clean:
@git clean -xfd @git clean -xfd

View File

@ -1,7 +0,0 @@
#!/bin/sh
mkdir -p .temptex
xelatex -shell-escape -output-directory .temptex mtheme.dtx
pythontex .temptex/mtheme.dtx
xelatex -shell-escape -output-directory .temptex mtheme.dtx
cp .temptex/mtheme.pdf ./mtheme.pdf