manualetto-software-RadioHam/makefile

25 lines
602 B
Makefile
Raw Permalink Normal View History

2019-05-22 08:58:23 +00:00
## Reduced version of TEX makefile
### Select all raster ###
RAST_DIR = ./img
RASTF = $(wildcard $(RAST_DIR)/*)
all: dist/main.pdf
booklet: dist/main.pdf
@pdfbook --outfile dist $<
dist/%.pdf: build/%.pdf
mv $< $@
build/%.pdf: %.tex $(RASTF) makefile
@mkdir -p build
2019-05-22 09:10:24 +00:00
@mkdir -p dist
2019-05-22 08:58:23 +00:00
@if [ -t 1 ]; then echo -e "\033[1;33m[Mashup ]\033[0m main.tex"; else echo "Mashup"; fi
@pdflatex -output-directory build -synctex=1 -interaction=nonstopmode $< > /dev/null
@pdflatex -output-directory build -synctex=1 -interaction=nonstopmode $< > /dev/null
clean:
rm -rf build
rm -rf $(VEC_DIR)