From dec149ccb72660066b60eab143af2334c5f5b4b2 Mon Sep 17 00:00:00 2001 From: Benjamin Weiss Date: Mon, 15 Jun 2015 15:38:01 +0200 Subject: [PATCH] switched to latexmk instead of using XeLaTeX directly / removed old build script --- Makefile | 13 +++++++------ build_dtx.sh | 7 ------- 2 files changed, 7 insertions(+), 13 deletions(-) delete mode 100755 build_dtx.sh diff --git a/Makefile b/Makefile index 61be55a..b4cf8f8 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,13 @@ DTX = $(wildcard *.dtx) STY = $(patsubst %.dtx,%.sty,$(wildcard beamer*.dtx)) TEXMFHOME = $(shell kpsewhich -var-value=TEXMFHOME) INSTALL_DIR = $(TEXMFHOME)/tex/latex/mtheme +TEMP_DIR = .temptex DEMO_SRC = demo.tex DEMO_PDF = demo.pdf MANUAL_SRC = mtheme.dtx MANUAL_PDF = mtheme.pdf -TEXC := xelatex -shell-escape +TEXC := latexmk -xelatex -output-directory=$(TEMP_DIR) DOCKER_IMAGE = latex-image DOCKER_CONTAINER = latex-container @@ -17,19 +18,19 @@ DOCKER_CONTAINER = latex-container .PHONY: clean install manual sty docker-run docker-rm -all: demo manual +all: sty demo manual sty: $(DTX) $(INS) @latex $(INS) demo: $(STY) $(DEMO_SRC) $(TEXC) $(DEMO_SRC) + @cp $(TEMP_DIR)/$(DEMO_PDF) . + manual: $(MANUAL_SRC) - @mkdir -p .temptex - @$(TEXC) -output-directory .temptex $< - @$(TEXC) -output-directory .temptex $< - @cp .temptex/mtheme.pdf . + @$(TEXC) $(MANUAL_SRC) + @cp $(TEMP_DIR)/$(MANUAL_PDF) . clean: @git clean -xfd diff --git a/build_dtx.sh b/build_dtx.sh deleted file mode 100755 index fcc0f43..0000000 --- a/build_dtx.sh +++ /dev/null @@ -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