includes: warn about file names.
[lilypond-ejercicios.git] / Makefile
blobae05e2e1be87eb5d58d119460d469398d0b89ce3
1 # de Slave Songs A. Simpson 1867, Marcus Brinkmann 2007
3 NOMBRE=libro
4 OUT=/tmp/salida
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 IMAGENES=lily-logo.png
14 #/home/fravd/software/latex/biblatex/doc/resources/latin1.csf $(NOMBRE)
15 INCLUDESTEX=introduccion.tex apuntes-01-instalacion-include.tex \
16 apuntes-02-cumple-include.tex apuntes-03-mozart-include.tex \
17 apuntes-03-mozart-include.tex \
18 apuntes-04-alteraciones-titulos-ofrenda-include.tex \
19 apuntes-05-barras-beethoven5th-include.tex \
20 apuntes-06-ligaduras-bach-suite1-cello-include.tex \
21 apuntes-07-repeticiones-beethoven-9thsym-include.tex \
22 apuntes-08-contextos-simultanea-include.tex \
23 apuntes-09-polifonia-include.tex \
24 apuntes-10-piano-tresillos-include.tex \
25 apuntes-11-canciones-include.tex \
26 apuntes-12-acordes-include.tex \
27 apuntes-13-variables-include.tex \
28 apuntes-14-articulaciones-digitaciones-include.tex \
29 apuntes-15-reguladores-markup-include.tex \
30 apuntes-16-adornos-include.tex apuntes-17-set-include.tex \
31 apuntes-18-emperador-include.tex \
32 apuntes-19-bajocifrado-include.tex \
33 apuntes-20-machaut-include.tex apuntes-21-midi-include.tex \
34 apuntes-22-trucha-include.tex
36 RUNPDF=cd $(OUT) && echo && pwd && echo && pdflatex $(NOMBRE).tex
37 LPBOOK=lilypond-book --pdf --output=$(OUT) --include=$(OUT) --format=latex
38 ARCHIVOSCOPIAR=$(IMAGENES) # $(INCLUDESTEX) #BIBARCHIVOS) $(IMAGENES) $(INCLUDESVERB) $(FUENTESPYX) $(DATOSPYX)# $(INCLUDESTEX)
39 COPIAR=cp $(ARCHIVOSCOPIAR) $(OUT)
41 all: build show
43 build: $(NOMBRE).pdf
45 show:
46 $(RUNEVINCE)
48 $(NOMBRE).pdf: $(NOMBRE).tex $(INCLUDESTEX)
49 mkdir -p $(OUT)
50 if [ -f $(OUT)/$(NOMBRE).tex ] ; then rm $(OUT)/$(NOMBRE).tex; fi
51 # rm $(OUT)/$(NOMBRE).tex
52 for tex in $(INCLUDESTEX); do (if [ -f $(OUT)/$$tex ] ; then rm $(OUT)/$$tex ; fi); done
53 for tex in $(INCLUDESTEX); do (echo $$tex; echo; $(LPBOOK) $$tex); done
54 $(LPBOOK) $(NOMBRE).tex
55 $(COPIAR)
57 $(RUNPDF)
58 $(RUNPDF)
59 $(RUNPDF)
61 cp $(OUT)/$(NOMBRE).pdf ./
63 muestra:
64 @echo 'NOMBRE: $(NOMBRE)'
65 @echo 'LY: $(LYNOMBRES)'
66 @echo 'LYARCHIVOS: $(LYARCHIVOS)'
67 @echo 'LYPDF: $(LYPDF)'
68 @echo 'OUT: $(OUT)'
69 @echo 'RUNEVINCE: $(RUNEVINCE)'
70 @echo 'RUNBIB: $(RUNBIB)'
71 @echo 'RUNPDF: $(RUNPDF)'
72 @echo 'RUNPDF: $(RUNPDF)'
73 @echo 'BIBARCHIVOS: $(BIBARCHIVOS)'
74 @echo 'FUENTESPYX: $(FUENTESPYX)'
75 @echo 'DATOSPYX: $(DATOSPYX)'
76 @echo 'GRAFICASPYX: $(GRAFICASPYX)'
77 @echo 'GRAFOS: $(GRAFOS)'
78 @echo 'IMAGENES: $(IMAGENES)'
79 @echo 'INCLUDESTEX: $(INCLUDESTEX)'
80 @echo 'INCLUDESVERB: $(INCLUDESVERB)'
81 @echo 'ARCHIVOSCOPIAR: $(ARCHIVOSCOPIAR)'
82 @echo 'COPIAR: $(COPIAR)'
84 clean:
85 rm -fr *.bbl *.blg *.aux *.idx *.dep *.log *.toc *.ps *.midi *.dvi *~ out snippet-map.ly
86 rm -rf $(OUT)
88 force:
89 rm -rf $(OUT)
90 make
92 .PHONY: wordcount
94 wordcount: dea.tex
95 detex dea.tex | wc