Makefile: ./img/raster/* inserite nelle dipendenze

This commit is contained in:
giuliof 2018-02-14 14:44:34 +01:00
parent 261fee3a1d
commit 6a0efa6ee0
2 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,9 @@ PDF = $(SVG:.svg=.pdf)
vpath %.svg $(SVG_DIR)
vpath %.pdf $(VEC_DIR)
# Select all raster
RASTER = $(notdir $(wildcard .img/raster/*))
### TEX files ###
TEX_DIR = ./tex
TEX = $(notdir $(wildcard $(TEX_DIR)/*.tex))
@ -19,7 +22,7 @@ vpath %.tex $(TEX_DIR)
all: dist/main.pdf figure
dist/main.pdf: main.tex $(TEX) $(PDF)
dist/main.pdf: main.tex $(TEX) $(PDF) $(RASTER)
mkdir -p build/tex dist
pdflatex -output-directory build -synctex=1 -interaction=nonstopmode main.tex
pdflatex -output-directory build -synctex=1 -interaction=nonstopmode main.tex

View File

@ -7,6 +7,10 @@ versione curata da GOLEM, basata su un'opera originaria di officina-s3.org
tex/
img/
## Software necessari
* pdflatex e pacchetti LaTeX (nel dubbio: texlive-*)
* inkscape, per la conversione automatica delle immagini vettoriali
## Compilazione
make [book]