pandoc-templates/handin/makefile

19 lines
358 B
Makefile
Raw Normal View History

2016-11-10 14:13:26 +00:00
TEX = pandoc
2016-11-23 21:48:44 +00:00
texsrc = template.tex handin.md
src = output.pdf
2016-11-10 14:13:26 +00:00
FLAGS = --latex-engine=xelatex
2016-11-23 21:48:44 +00:00
pdfname = $(shell basename $(CURDIR))
2016-11-10 14:13:26 +00:00
2016-11-23 21:48:44 +00:00
package: $(src)
mkdir -p output
cp $(src) output/
mv output/output.pdf output/$(pdfname)
output.pdf : $(texsrc)
2016-11-10 14:13:26 +00:00
$(TEX) $(filter-out $<,$^ ) -o $@ --template=$< $(FLAGS)
.PHONY: clean
clean :
rm output.pdf
2016-11-23 21:48:44 +00:00
rm -R output