From e1518c118573d89fcf3a1f68753567724a55e00b Mon Sep 17 00:00:00 2001 From: Christian Krause <christian.krause@mailbox.org> Date: Wed, 4 Dec 2019 11:06:01 +0100 Subject: [PATCH] adds title.tex to targets --- .gitignore | 1 + Makefile | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 51dd931..f5f6eac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pdf +*.tex img/graph/*.svg img/plot/*.svg diff --git a/Makefile b/Makefile index 7e1d2a8..b042716 100644 --- a/Makefile +++ b/Makefile @@ -21,12 +21,18 @@ else PANDOC_PDF_ENGINE_OPT_NAME = pdf-engine endif -PANDOC_PDF_OPTIONS = \ +PANDOC_OPTIONS = \ --fail-if-warnings \ --standalone \ --filter pandoc-citeproc \ + +PANDOC_PDF_OPTIONS = \ + $(PANDOC_OPTIONS) \ --$(PANDOC_PDF_ENGINE_OPT_NAME)=xelatex \ +PANDOC_TEX_OPTIONS = \ + $(PANDOC_OPTIONS) \ + # ----------------------------------------------------------------------------- # sources # ----------------------------------------------------------------------------- @@ -38,9 +44,13 @@ SOURCES_MD = $(sort $(wildcard chapter-*.md)) # targets # ----------------------------------------------------------------------------- -default: all +TARGETS = \ + $(TITLE).pdf \ + $(TITLE).tex \ + +default: $(TITLE).pdf -all: $(TITLE).pdf +all: $(TARGETS) SUBDIRS = \ img \ @@ -53,6 +63,9 @@ subdirs: $(SUBDIRS) $(TITLE).pdf: $(SUBDIRS) metadata.yml $(SOURCES_CSV) $(SOURCES_MD) $(PANDOC) $(PANDOC_PDF_OPTIONS) -o $@ metadata.yml $(SOURCES_MD) +$(TITLE).tex: $(SUBDIRS) metadata.yml $(SOURCES_CSV) $(SOURCES_MD) + $(PANDOC) $(PANDOC_TEX_OPTIONS) -o $@ metadata.yml $(SOURCES_MD) + check: spellcheck spellcheck: @@ -65,7 +78,7 @@ clean: @for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir $@; \ done - rm -f $(TITLE).pdf + rm -f $(TARGETS) .PHONY: \ all \ -- GitLab