forked from ephase/resume
Add makefile
This commit is contained in:
parent
6c838b2055
commit
1819b34620
2 changed files with 29 additions and 0 deletions
29
Makefile
Normal file
29
Makefile
Normal 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
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Loading…
Add table
Add a link
Reference in a new issue