summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4278ffd2459e30b4ce1054edfd0d0b28b5e355a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
MODE ?= main
REBUILD_DEPS ?= yes
DEPS :=
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: $(DEPS)

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
	$(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/"