This repository has been archived on 2024-09-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
stage/Makefile
2021-07-28 18:33:39 +02:00

28 lines
538 B
Makefile

PDF_APP = zathura
OUTPUT_DIR = output
svgfiles = $(wildcard images/svg/*.svg)
figures = $(subst svg/,generated/,$(subst .svg,.pdf,$(svgfiles)))
default: build
images: $(figures)
clean:
rm -rf images/generated/*
rm -rf output/*
build:
lualatex --output-directory $(OUTPUT_DIR) rapport.tex
buildall: images build
images/generated/%.pdf: images/svg/%.svg
@echo build $@
inkscape --export-type=pdf -o $@ $<
echo:
@echo "svg files: $(svgfiles)"
@echo "generated figures: $(figures)"
view:
$(PDF_APP) $(OUTPUT_DIR)/rapport.pdf