diff options
author | Nao Pross <np@0hm.ch> | 2021-09-21 15:54:06 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-09-21 15:54:06 +0200 |
commit | 680a65e29dd163b806debd8a8242330b66c3b35a (patch) | |
tree | 5cbab5d955efda510b015fa9992fc442e17fae33 /doc/projectplan/Makefile | |
parent | Make whitespace consistents with tabs (diff) | |
download | Fading-680a65e29dd163b806debd8a8242330b66c3b35a.tar.gz Fading-680a65e29dd163b806debd8a8242330b66c3b35a.zip |
Create makefile for project plan
Diffstat (limited to 'doc/projectplan/Makefile')
-rw-r--r-- | doc/projectplan/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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 = <filename>` 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 |