mirror of
https://gitlab.com/parroquia-san-leandro/cancionero-25.git
synced 2024-12-23 17:23:33 +01:00
30 lines
930 B
Makefile
30 lines
930 B
Makefile
DATE := $(shell date +%y%m%d)
|
|
.PHONY: clean cancionero.pdf impresion.pdf
|
|
|
|
cancionero.pdf :
|
|
pdflatex cancionero.tex < /dev/null
|
|
luatex songidx.lua idxfile.sxd idxfile.sbx
|
|
luatex songidx.lua idxfile-authors.sxd idxfile-authors.sbx
|
|
pdflatex cancionero.tex < /dev/null
|
|
|
|
generate-acordes : set-acordes cancionero.pdf
|
|
mkdir -p public/$(DATE)
|
|
mv cancionero.pdf public/$(DATE)/cancionero_acordes_$(DATE).pdf
|
|
|
|
generate-letra : set-letra cancionero.pdf
|
|
mkdir -p public/$(DATE)
|
|
mv cancionero.pdf public/$(DATE)/cancionero_letra_$(DATE).pdf
|
|
|
|
impresion.pdf : set-letra cancionero.pdf
|
|
mkdir -p public/$(DATE)
|
|
pdflatex impresion.tex < /dev/null
|
|
cp impresion.pdf public/$(DATE)/cancionero_impresion_$(DATE).pdf
|
|
|
|
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
|