From d2205987abc3f3d85cead0281c4061ea37df60ce Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Fri, 9 Aug 2019 19:58:48 +0200 Subject: [PATCH] expanded makefile --- Makefile | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 4afc27c..b776da8 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,28 @@ DATE := $(shell date +%y%m%d) +.PHONY: clean cancionero.pdf impresion.pdf -cancionero: - pdflatex -d cancionero.tex +cancionero.pdf : + pdflatex cancionero.tex < /dev/null luatex songidx.lua idxfile.sxd idxfile.sbx luatex songidx.lua idxfile-authors.sxd idxfile-authors.sbx - pdflatex -d cancionero.tex + pdflatex cancionero.tex < /dev/null -generate-acordes: cancionero - mv cancionero.pdf cancionero_acordes_$(DATE).pdf +generate-acordes : set-acordes cancionero.pdf + mkdir -p public/$(DATE) + mv cancionero.pdf public/$(DATE)/cancionero_acordes_$(DATE).pdf -generate-letra: impresion - mv impresion.pdf cancinero_impresion_$(DATE).pdf - mv cancionero.pdf cancionero_letra_$(DATE).pdf +generate-letra : set-letra cancionero.pdf + mkdir -p public/$(DATE) + mv cancionero.pdf public/$(DATE)/cancionero_letra_$(DATE).pdf -impresion: cancionero - pdflatex -d impresion.tex +impresion.pdf : set-letra cancionero.pdf + pdflatex impresion.tex < /dev/null -clean: +set-acordes : + sed -i 's@{estilo/[a-zA-Z]*}@{estilo/acordes}@' cancionero.tex + +set-letra : + sed -i 's@{estilo/[a-zA-Z]*}@{estilo/letra}@' cancionero.tex + +clean : rm -f *.gz *.aux *.log *.sxd *.sbx *.toc *.log *.sxc *.out