Pequeños retoques.
[lilypond-ejercicios.git] / Makefile
blob26183f757e9b73b7646fd323db300eca837dbdfe
1 # de Slave Songs A. Simpson 1867, Marcus Brinkmann 2007
3 NOMBRE=libro
4 OUT=out
5 #LYNOMBRES=faenas incarnatus #fuentes lilypond
6 #LYARCHIVOS=$(addsuffix .ly, $(LYNOMBRES))
7 #LYPDF=$(addsuffix .pdf, $(LYNOMBRES))
8 RUNEVINCE=evince $(OUT)/$(NOMBRE).pdf &
9 #para salvia
10 #RUNBIB=cd $(OUT) && bibtex8 -W --csfile /home/fravd/software/biblatex/biblatex/doc/resources/latin1.csf $(NOMBRE)
11 #para Oregano
12 #RUNBIB=cd $(OUT) && bibtex8 -W --csfile /home/fravd/trabajos-doctorado/biblatex/biblatex/doc/resources/latin1.csf $(NOMBRE)
13 SPLITPDFS=outA1.pdf outA2.pdf outB1.pdf outB2.pdf
14 IMAGENES=lily-logo.png $(SPLITPDFS) frerejacques.pdf holst-marte.pdf \
15 bach-cbt1.pdf mozart-sonates.pdf chopin-op10.pdf \
16 chopin-op25-posth.pdf lpe.pdf
17 #/home/fravd/software/latex/biblatex/doc/resources/latin1.csf $(NOMBRE)
18 INCLUDESTEX=introduccion.tex apuntes-01-instalacion.tex \
19 apuntes-02-cumple.tex apuntes-03-mozart.tex \
20 apuntes-03-mozart.tex \
21 apuntes-04-alteraciones-titulos-ofrenda.tex \
22 apuntes-05-barras-beethoven5th.tex \
23 apuntes-06-ligaduras-bach-suite1-cello.tex \
24 apuntes-07-repeticiones-beethoven-9thsym.tex \
25 apuntes-08-contextos-simultanea.tex apuntes-09-polifonia.tex \
26 apuntes-10-piano-tresillos.tex apuntes-11-canciones.tex \
27 apuntes-12-acordes.tex apuntes-13-variables.tex \
28 apuntes-14-articulaciones-digitaciones.tex \
29 apuntes-15-reguladores-markup.tex apuntes-16-adornos.tex \
30 apuntes-17-set.tex apuntes-18-emperador.tex \
31 apuntes-19-bajocifrado.tex apuntes-20-machaut.tex \
32 apuntes-21-midi.tex apuntes-22-trucha.tex \
33 apuntes-23-despertad.tex apuntes-24-book.tex \
34 apuntes-25-mendelssohn.tex apuntes-26-margenes.tex \
35 apuntes-27-holst-1.tex apuntes-28-holst-2.tex \
36 apuntes-29-espanol.tex apuntes-30-antigua.tex \
37 apuntes-00-teclado.tex collections.tex \
38 lilypond-por-ejemplo.tex
40 RUNPDF=cd $(OUT) && echo && pwd && echo && pdflatex $(NOMBRE).tex
41 LPBOOK=lilypond-book --pdf --output=$(OUT) --include=$(OUT) --format=latex
42 ARCHIVOSCOPIAR=$(IMAGENES)
43 COPIAR=cp $(ARCHIVOSCOPIAR) $(OUT)
45 all: build show
47 build: $(NOMBRE).pdf
49 show:
50 $(RUNEVINCE)
52 $(NOMBRE).pdf: $(NOMBRE).tex $(INCLUDESTEX) $(IMAGENES)
53 mkdir -p $(OUT)
54 if [ -f $(OUT)/$(NOMBRE).tex ] ; then rm $(OUT)/$(NOMBRE).tex; fi
55 # rm $(OUT)/$(NOMBRE).tex
56 for tex in $(INCLUDESTEX); do (if [ -f $(OUT)/$$tex ] ; then rm $(OUT)/$$tex ; fi); done
57 for tex in $(INCLUDESTEX); do (echo $$tex; echo; $(LPBOOK) $$tex); done
58 $(LPBOOK) $(NOMBRE).tex
59 $(COPIAR)
61 $(RUNPDF)
62 $(RUNPDF)
63 $(RUNPDF)
65 cp $(OUT)/$(NOMBRE).pdf ./
67 $(SPLITPDFS): pruebalibro.ly
68 lilypond pruebalibro.ly
69 . ./scriptPDFTK.sh
71 frerejacques.pdf: frerejacques.ly
72 lilypond frerejacques.ly
74 holst-marte.pdf: holst-marte.ly
75 lilypond holst-marte.ly
77 muestra:
78 @echo 'NOMBRE: $(NOMBRE)'
79 @echo 'LY: $(LYNOMBRES)'
80 @echo 'LYARCHIVOS: $(LYARCHIVOS)'
81 @echo 'LYPDF: $(LYPDF)'
82 @echo 'OUT: $(OUT)'
83 @echo 'RUNEVINCE: $(RUNEVINCE)'
84 @echo 'RUNBIB: $(RUNBIB)'
85 @echo 'RUNPDF: $(RUNPDF)'
86 @echo 'RUNPDF: $(RUNPDF)'
87 @echo 'BIBARCHIVOS: $(BIBARCHIVOS)'
88 @echo 'FUENTESPYX: $(FUENTESPYX)'
89 @echo 'DATOSPYX: $(DATOSPYX)'
90 @echo 'GRAFICASPYX: $(GRAFICASPYX)'
91 @echo 'GRAFOS: $(GRAFOS)'
92 @echo 'IMAGENES: $(IMAGENES)'
93 @echo 'INCLUDESTEX: $(INCLUDESTEX)'
94 @echo 'INCLUDESVERB: $(INCLUDESVERB)'
95 @echo 'ARCHIVOSCOPIAR: $(ARCHIVOSCOPIAR)'
96 @echo 'COPIAR: $(COPIAR)'
98 clean:
99 rm -fr *.bbl *.blg *.aux *.idx *.dep *.log *.toc *.ps *.midi *.dvi *~ out snippet-map.ly
100 rm -rf $(OUT)
102 force:
103 rm -rf $(OUT)
104 touch $(NOMBRE).tex
105 make
107 .PHONY: wordcount
109 wordcount: dea.tex
110 detex dea.tex | wc