expanded makefile

This commit is contained in:
Carlos Galindo 2019-08-09 19:58:48 +02:00
parent c7efde54bc
commit d2205987ab
Signed by: kauron
GPG key ID: 83E68706DEE119A3

View file

@ -1,20 +1,28 @@
DATE := $(shell date +%y%m%d) DATE := $(shell date +%y%m%d)
.PHONY: clean cancionero.pdf impresion.pdf
cancionero: cancionero.pdf :
pdflatex -d cancionero.tex pdflatex cancionero.tex < /dev/null
luatex songidx.lua idxfile.sxd idxfile.sbx luatex songidx.lua idxfile.sxd idxfile.sbx
luatex songidx.lua idxfile-authors.sxd idxfile-authors.sbx luatex songidx.lua idxfile-authors.sxd idxfile-authors.sbx
pdflatex -d cancionero.tex pdflatex cancionero.tex < /dev/null
generate-acordes: cancionero generate-acordes : set-acordes cancionero.pdf
mv cancionero.pdf cancionero_acordes_$(DATE).pdf mkdir -p public/$(DATE)
mv cancionero.pdf public/$(DATE)/cancionero_acordes_$(DATE).pdf
generate-letra: impresion generate-letra : set-letra cancionero.pdf
mv impresion.pdf cancinero_impresion_$(DATE).pdf mkdir -p public/$(DATE)
mv cancionero.pdf cancionero_letra_$(DATE).pdf mv cancionero.pdf public/$(DATE)/cancionero_letra_$(DATE).pdf
impresion: cancionero impresion.pdf : set-letra cancionero.pdf
pdflatex -d impresion.tex 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 rm -f *.gz *.aux *.log *.sxd *.sbx *.toc *.log *.sxc *.out