1 TEXI_BINARY
= ~
/lilypond
/texi2html
/texi2html
4 DOC_DIR
= orchestrallily
6 TELY_FILE
= orchestrallily.tely
7 TEXI_FILE
= $(TEXI_DIR
)/orchestrallily.texi
8 INIT_FILE
= orchestrallily.init
9 CSS_FILE
= orchestrallily.css
10 HTML_FILE
= $(DOC_DIR
)/index.html
11 HTML_BIG_FILE
= $(DOC_DIR
)/orchestrallily-bigpage.html
12 PDF_FILE
= $(DOC_DIR
)/orchestrallily.pdf
14 all: $(TELY_FILE
) pathes
$(TEXI_FILE
) $(HTML_FILE
) $(HTML_BIG_FILE
) $(DOC_DIR
)/makeinfo.html
$(PDF_FILE
) links
17 mkdir
-p
$(DOC_DIR
) $(TEXI_DIR
) $(DOC_DIR
)/releases
/
18 cp
-r images
/score_structure.pdf
$(TEXI_DIR
)
20 $(TEXI_FILE
): $(TELY_FILE
)
21 echo
"Running lilypond-book:"
22 lilypond-book
--pdf
--output
=$(dir $@
) --include=examples
$<
24 $(HTML_FILE
): $(TEXI_FILE
)
25 echo
"Running texi2html to enerate $@ from $<:"
26 $(TEXI_BINARY
) -I examples
-I images
--css-ref
=$(CSS_FILE
) --split
=chapter
--init
=lilypond-texi2html.init
--init
=$(INIT_FILE
) --output
=$(dir $@
) $<
28 $(HTML_BIG_FILE
): $(TEXI_FILE
)
29 echo
"Running texi2html to enerate $@ from $<:"
30 $(TEXI_BINARY
) -I examples
-I images
--css-ref
=$(CSS_FILE
) --init
=lilypond-texi2html.init
--init
=$(INIT_FILE
) --output
=$@
$<
32 $(DOC_DIR
)/makeinfo.html
: $(TEXI_FILE
)
33 echo
"Running makeinfo (for comparison with texi2html):"
34 makeinfo --html
--no-split
--output
=$@
-I examples
-I images
$<
36 $(PDF_FILE
): $(TEXI_FILE
)
37 echo
"Running texi2pdf to generate $@ from $<:"
39 texi2pdf
--quiet
--pdf
--output
=..
/$@
-I ..
/examples
-I ..
/images orchestrallily.texi
43 echo
"Creating soft links for html links image and lilypond files:"
44 cp
-r
$(TEXI_DIR
)/*.ly orchestrallily.css images
/score_structure.png
$(TEXI_DIR
)/[a-f0-9
][a-f0-9
]/ $(DOC_DIR
)
45 cp ..
/releases
/* $(DOC_DIR
)/releases
/
48 rm -rf
$(DOC_DIR
) $(TEXI_DIR
)