Add makefile

This commit is contained in:
Yorick Barbanneau 2022-03-08 22:14:48 +01:00
parent 6c838b2055
commit 1819b34620
2 changed files with 29 additions and 0 deletions

29
Makefile Normal file
View file

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

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After