forked from ephase/resume
34 lines
754 B
Makefile
34 lines
754 B
Makefile
PDF_APP = zathura
|
|
OUTPUT_DIR = output
|
|
GENERATED_IMAGES_DIR = images/generated
|
|
SVG_FILES_DIR=images/svg
|
|
svgfiles = $(wildcard $(SVG_FILES_DIR)/*.svg)
|
|
figures = $(subst svg/,generated/,$(subst .svg,.png,$(svgfiles)))
|
|
|
|
default: build
|
|
|
|
images: $(figures)
|
|
|
|
clean:
|
|
rm -rf $(GENERATED_IMAGES_DIR)/*
|
|
rm -rf $(OUTPUT_DIR)/*
|
|
|
|
build:
|
|
$(shell mkdir -p $(OUTPUT_DIR))
|
|
lualatex --interaction=nonstopmode --output-directory $(OUTPUT_DIR) resume_fr.tex
|
|
|
|
buildall: images build
|
|
|
|
$(GENERATED_IMAGES_DIR)/%.png : images/svg/%.svg
|
|
@echo build $@
|
|
#mkdir -p $(GENERATED_IMAGES_DIR)
|
|
inkscape --export-type=png -o $@ $<
|
|
|
|
echo:
|
|
@echo "svg files: $(svgfiles)"
|
|
@echo "generated figures: $(figures)"
|
|
|
|
view:
|
|
$(PDF_APP) $(OUTPUT_DIR)/resume_fr.pdf
|
|
|
|
.PHONY: echo view clean
|