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
|
PDF_APP = zathura
|
||||||
OUTPUT_DIR = output
|
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)))
|
figures = $(subst svg/,generated/,$(subst .svg,.png,$(svgfiles)))
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
@ -8,17 +10,18 @@ default: build
|
||||||
images: $(figures)
|
images: $(figures)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf images/generated/*
|
rm -rf $(GENERATED_IMAGES_DIR)/*
|
||||||
rm -rf output/*
|
rm -rf $(OUTPUT_DIR)/*
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(shell mkdir -p $(OUTPUT_DIR))
|
$(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
|
buildall: images build
|
||||||
|
|
||||||
images/generated/%.png: images/svg/%.svg
|
$(GENERATED_IMAGES_DIR)/%.png : images/svg/%.svg
|
||||||
@echo build $@
|
@echo build $@
|
||||||
|
#mkdir -p $(GENERATED_IMAGES_DIR)
|
||||||
inkscape --export-type=png -o $@ $<
|
inkscape --export-type=png -o $@ $<
|
||||||
|
|
||||||
echo:
|
echo:
|
||||||
|
@ -26,4 +29,6 @@ echo:
|
||||||
@echo "generated figures: $(figures)"
|
@echo "generated figures: $(figures)"
|
||||||
|
|
||||||
view:
|
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