25 lines
573 B
Makefile
25 lines
573 B
Makefile
TEXC = latexmk -lualatex -output-directory=build
|
|
|
|
.PHONY: FORCE
|
|
|
|
all: sk build/main.pdf
|
|
|
|
sk:
|
|
cd ../common && make
|
|
|
|
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
|