summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-06-27 15:01:51 +0100
committerYann Herklotz <git@yannherklotz.com>2022-06-27 15:01:51 +0100
commit2fa27381a18e65b4af2d860dc9be17489ff26258 (patch)
tree558ce90874835ff0094af1abf56256b346402ffc /Makefile
parentb93723f5d4391333b6ed12cea8c3f49871976927 (diff)
downloadlsr22_fvhls-2fa27381a18e65b4af2d860dc9be17489ff26258.tar.gz
lsr22_fvhls-2fa27381a18e65b4af2d860dc9be17489ff26258.zip
Add changes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4278ffd..216dded 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
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)
@@ -11,7 +13,7 @@ endif
all: main.pdf
-main.pdf: $(DEPS)
+main.pdf: $(DEFAULT_DEPS) $(DEPS) $(ALL_TEX)
figures/%.pdf: figures/%.tex
latexmk -pdf -shell-escape $<
@@ -20,7 +22,7 @@ figures/%.pdf: figures/%.tex
chapters/scheduling.pdf: figures/timing-3.pdf
# silent structure,structures,pages,resolvers,open source,close source,loading,modules
-%.pdf: %.tex
+%.pdf: %.tex $(DEFAULT_DEPS)
$(CONTEXT) --mode=$(MODE) --nonstopmode --silent='*' $<
cp $(notdir $@) $@ || true