forked from ephase/resume
Update Makefile
This commit is contained in:
parent
1819b34620
commit
62b20f3d02
1 changed files with 11 additions and 6 deletions
17
Makefile
17
Makefile
|
@ -1,6 +1,8 @@
|
|||
PDF_APP = zathura
|
||||
OUTPUT_DIR = output
|
||||
svgfiles = $(wildcard images/svg/*.svg)
|
||||
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
|
||||
|
@ -8,17 +10,18 @@ default: build
|
|||
images: $(figures)
|
||||
|
||||
clean:
|
||||
rm -rf images/generated/*
|
||||
rm -rf output/*
|
||||
rm -rf $(GENERATED_IMAGES_DIR)/*
|
||||
rm -rf $(OUTPUT_DIR)/*
|
||||
|
||||
build:
|
||||
$(shell mkdir -p $(OUTPUT_DIR))
|
||||
lualatex --output-directory $(OUTPUT_DIR) resune_fr.tex
|
||||
lualatex --interaction=nonstopmode --output-directory $(OUTPUT_DIR) resume_fr.tex
|
||||
|
||||
buildall: images build
|
||||
|
||||
images/generated/%.png: images/svg/%.svg
|
||||
$(GENERATED_IMAGES_DIR)/%.png : images/svg/%.svg
|
||||
@echo build $@
|
||||
#mkdir -p $(GENERATED_IMAGES_DIR)
|
||||
inkscape --export-type=png -o $@ $<
|
||||
|
||||
echo:
|
||||
|
@ -26,4 +29,6 @@ echo:
|
|||
@echo "generated figures: $(figures)"
|
||||
|
||||
view:
|
||||
$(PDF_APP) $(OUTPUT_DIR)/rapport.pdf
|
||||
$(PDF_APP) $(OUTPUT_DIR)/resume_fr.pdf
|
||||
|
||||
.PHONY: echo view clean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue