2019-03-19 23:20:31 +01:00
|
|
|
DATE := $(shell date +%y%m%d)
|
2019-08-09 19:58:48 +02:00
|
|
|
.PHONY: clean cancionero.pdf impresion.pdf
|
2019-03-19 23:20:31 +01:00
|
|
|
|
2019-08-09 19:58:48 +02:00
|
|
|
cancionero.pdf :
|
|
|
|
pdflatex cancionero.tex < /dev/null
|
2019-02-23 13:35:41 +01:00
|
|
|
luatex songidx.lua idxfile.sxd idxfile.sbx
|
|
|
|
luatex songidx.lua idxfile-authors.sxd idxfile-authors.sbx
|
2019-08-09 19:58:48 +02:00
|
|
|
pdflatex cancionero.tex < /dev/null
|
2019-02-23 13:35:41 +01:00
|
|
|
|
2019-08-09 19:58:48 +02:00
|
|
|
generate-acordes : set-acordes cancionero.pdf
|
|
|
|
mkdir -p public/$(DATE)
|
|
|
|
mv cancionero.pdf public/$(DATE)/cancionero_acordes_$(DATE).pdf
|
2019-03-19 23:20:31 +01:00
|
|
|
|
2019-08-09 19:58:48 +02:00
|
|
|
generate-letra : set-letra cancionero.pdf
|
|
|
|
mkdir -p public/$(DATE)
|
|
|
|
mv cancionero.pdf public/$(DATE)/cancionero_letra_$(DATE).pdf
|
2019-03-19 23:20:31 +01:00
|
|
|
|
2019-08-09 19:58:48 +02:00
|
|
|
impresion.pdf : set-letra cancionero.pdf
|
|
|
|
pdflatex impresion.tex < /dev/null
|
2019-02-23 13:35:41 +01:00
|
|
|
|
2019-08-09 19:58:48 +02:00
|
|
|
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 :
|
2019-02-23 13:35:41 +01:00
|
|
|
rm -f *.gz *.aux *.log *.sxd *.sbx *.toc *.log *.sxc *.out
|