3d-interface-rapport/rapport/Makefile

25 lines
600 B
Makefile

TEXC = latexmk -lualatex -output-directory=build
.PHONY: FORCE
all: sk build/main.pdf
sk:
./sketch/sketch frustum.sk -o build/frustum.tex
build/main.pdf: main.tex FORCE
$(TEXC) -latexoption=-shell-escape $<
compress: build/main.pdf
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=build/main.min.pdf build/main.pdf
push: compress
scp -P2222 build/main.pdf pi@dragonrock.no-ip.org:web/dragonrock/rapport.pdf
scp -P2222 build/main.min.pdf pi@dragonrock.no-ip.org:web/dragonrock/rapport.min.pdf
clean: FORCE
$(TEXC) -c
clean_all: FORCE
$(RM) -fr build