blob: 216dded39c6a3241314a75b33e2c67ffa67edcdd (
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
31
32
|
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/"
|