Allow compiling dot resources
This commit is contained in:
parent
c7a4fa3f94
commit
704e6b85b3
14
Makefile
14
Makefile
@ -4,7 +4,11 @@ SRC = report.tex
|
||||
TARGET = $(SRC:%.tex=%.pdf)
|
||||
|
||||
.PHONY: build
|
||||
build: $(TARGET)
|
||||
build: dot $(TARGET)
|
||||
|
||||
.PHONY: dot
|
||||
dot:
|
||||
$(MAKE) -C ./assets/dot/
|
||||
|
||||
# used for `nix-build`
|
||||
.PHONY: install
|
||||
@ -16,7 +20,7 @@ install: build
|
||||
latexmk $<
|
||||
|
||||
.PHONY: watch
|
||||
watch:
|
||||
watch: dot
|
||||
latexmk -pvc $(SRC)
|
||||
|
||||
.PHONY: lint
|
||||
@ -28,5 +32,9 @@ languagetool:
|
||||
languagetool <(cat $(SRC) | ./scripts/detex.py)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
clean: clean_dot
|
||||
latexmk -C
|
||||
|
||||
.PHONY: clean_dot
|
||||
clean_dot:
|
||||
$(MAKE) -C ./assets/dot/ clean
|
||||
|
13
assets/dot/Makefile
Normal file
13
assets/dot/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
DOT = $(wildcard *.dot)
|
||||
PDF = $(DOT:.dot=.pdf)
|
||||
|
||||
.PHONY: build
|
||||
build: $(PDF)
|
||||
|
||||
%.pdf: %.dot
|
||||
dot -Tpdf $< -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f *.pdf
|
Loading…
Reference in New Issue
Block a user