summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f2114e84e69432120fbf12b9f4efb9b360e99c15 (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
MODE ?= main
REBUILD_DEPS ?= yes
DEPS :=

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