Debian Codegraph @

texk/gregorio/gregorio-src/doc/Makefile.am

raw
1 # Copyright (C) 2006-2025 The Gregorio Project (see CONTRIBUTORS.md)
2 #
3 # This file is part of Gregorio.
4 #
5 # Gregorio is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # Gregorio is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with Gregorio. If not, see <http://www.gnu.org/licenses/>.
17
18 # GregorioRef.tex must be the first source file
19 SRCFILES = GregorioRef.tex Command_Index_gregorio.tex \
20 Command_Index_internal.tex Command_Index_User.tex \
21 Gabc.tex Appendix_Font_Tables.tex GregorioRef.lua factus.gabc \
22 pitches2.gabc pitches3.gabc pitches4.gabc pitches5.gabc gsp-sample.tex
23 NABCSRCFILES = GregorioNabcRef.tex veni.gabc omnes.gabc
24
25 GREGORIO=gregorio-$(FILENAME_VERSION)
26
27 .NOTPARALLEL:
28
29 # I know these rules look wrong, but they must not depend on anything that
30 # gets generated or make distcheck will fail.
31
32 GregorioRef.pdf: $(SRCFILES)
33 luaotfload-tool --update --force
34 $(MAKE) $(AM_MAKEFLAGS) -C ../src $(GREGORIO)
35 ../src/$(GREGORIO) -o factus.gtex $(<D)/factus.gabc
36 TEXINPUTS=$(<D):$(<D)/../tex: LUAINPUTS=$(<D):$(<D)/../tex: \
37 TTFONTS=$(<D)/../fonts: PATH=../src:${PATH} latexmk -f -recorder -pdf \
38 -interaction=nonstopmode -halt-on-error \
39 -pdflatex='lualatex --shell-escape %O %S' \
40 -jobname=GregorioRef $< || rm $@
41
42 GregorioNabcRef.pdf: $(NABCSRCFILES)
43 luaotfload-tool --update --force
44 $(MAKE) $(AM_MAKEFLAGS) -C ../src $(GREGORIO)
45 ../src/$(GREGORIO) -o veni.gtex $(<D)/veni.gabc
46 ../src/$(GREGORIO) -o omnes.gtex $(<D)/omnes.gabc
47 TEXINPUTS=$(<D):$(<D)/../tex: LUAINPUTS=$(<D):$(<D)/../tex: \
48 TTFONTS=$(<D)/../fonts: PATH=../src:${PATH} latexmk -recorder -pdf \
49 -interaction=nonstopmode -halt-on-error \
50 -pdflatex='lualatex --shell-escape %O %S' \
51 -jobname=GregorioNabcRef $< || rm $@
52
53 doc: GregorioRef.pdf GregorioNabcRef.pdf
54
55 pdf-local: doc
56
57 clean-doc-intermediate:
58 latexmk -quiet -c -f -jobname=GregorioRef GregorioRef.tex
59 latexmk -quiet -c -f -jobname=GregorioNabcRef GregorioNabcRef.tex
60 rm -rf tmp-gre _minted* *.gtex *.aux *.gaux *.glog
61
62 clean-doc: clean-doc-intermediate
63 rm -rf GregorioRef.pdf
64 rm -rf GregorioNabcRef.pdf
65
66 distclean-local: clean-doc-intermediate
67
68 maintainer-clean-local: clean-doc
69
70 EXTRA_DIST = $(SRCFILES) $(NABCSRCFILES) \
71 GregorioRef.pdf \
72 GregorioNabcRef.pdf \
73 doc_README.md