MODE ?= main REBUILD_DEPS ?= yes DEPS := DEFAULT_DEPS := lsr_env.tex fonts_env.tex lsr_refs.bib ALL_TEX := $(wildcard chapters/*.tex) $(wildcard *.tex) CONTEXT ?= context ifeq ($(REBUILD_DEPS), yes) DEPS += figures/timing-1.pdf figures/timing-2.pdf figures/timing-3.pdf endif .PHONY: all clean all: main.pdf main.pdf: $(DEFAULT_DEPS) $(DEPS) $(ALL_TEX) figures/%.pdf: figures/%.tex latexmk -pdf -shell-escape $< cp $(notdir $@) $@ || true chapters/scheduling.pdf: figures/timing-3.pdf # silent structure,structures,pages,resolvers,open source,close source,loading,modules %.pdf: %.tex $(DEFAULT_DEPS) $(CONTEXT) --mode=$(MODE) --nonstopmode --silent='*' $< cp $(notdir $@) $@ || true upload: mkdir -p 70 cp main.pdf 70/7ef841-ffbc-4e89-ba15-ca7a594f8b6f.pdf rsync --rsh="ssh -o StrictHostKeyChecking=no" -avR 70/7ef841-ffbc-4e89-ba15-ca7a594f8b6f.pdf "notes@leika.ymhg.org:/var/www/docs/"