From 680a65e29dd163b806debd8a8242330b66c3b35a Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 21 Sep 2021 15:54:06 +0200 Subject: Create makefile for project plan --- doc/projectplan/Makefile | 23 +++++++++++++++++++++++ doc/projectplan/ProjectPlan.pdf | Bin 28556 -> 28679 bytes 2 files changed, 23 insertions(+) create mode 100644 doc/projectplan/Makefile (limited to 'doc') diff --git a/doc/projectplan/Makefile b/doc/projectplan/Makefile new file mode 100644 index 0000000..64fadde --- /dev/null +++ b/doc/projectplan/Makefile @@ -0,0 +1,23 @@ +TEX := xelatex +TEXARGS := -halt-on-error -interaction=nonstopmode + +SOURCES := ProjectPlan.tex + +# Get the main file from the file +MAIN := $(shell sed -ne 's/^.*\!TeX root =\(.*\)$$/\1/ p' $(SOURCES)) +PDF := $(patsubst %.tex, %.pdf, $(MAIN)) + +ifeq ($(strip $(MAIN)),) +MAIN := $(error Failed to identify TeX root, try adding \ + `% !TeX root = ` to your main tex file) +endif + +.PHONY: all +all: $(PDF) + +%.pdf: %.tex $(SOURCES) + $(TEX) $(TEXARGS) $< + +.PHONY: clean +clean: + @rm -vf *.aux *.aue *.lof *.log *.lot *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb *.dvi *.xdv *-converted-to.* *.bbl *.bcf *.blg *-blx.aux *-blx.bib *.run.xml *.fdb_latexmk *.synctex *.synctex\(busy\) *.synctex.gz *.synctex.gz\(busy\) *.pdfsync *.alg *.loa acs-*.bib *.thm *.nav *.pre *.snm *.vrb *.soc *.cut *.cpt *.spl *.ent *.lox *.mf *.acn *.acr *.glg *.glo *.gls *.glsdefs *.lzo *.lzs diff --git a/doc/projectplan/ProjectPlan.pdf b/doc/projectplan/ProjectPlan.pdf index 93b31f0..d66c22d 100644 Binary files a/doc/projectplan/ProjectPlan.pdf and b/doc/projectplan/ProjectPlan.pdf differ -- cgit v1.2.1