2 # title specific top level makefile for LilyPond
9 # descent order into subdirectories
11 SUBDIRS
= buildscripts scripts flower lily \
14 debian
$(builddir
)/stepmake \
19 SCRIPTS
= configure aclocal.m4 autogen.sh
20 README_FILES
= ChangeLog CHANGES COPYING DEDICATION NEWS README.mandrake ROADMAP
21 README_TXT_FILES
= AUTHORS.txt README.txt INSTALL.txt FAQ.txt
22 IN_FILES
:= $(wildcard *.in
)
23 EXTRA_DIST_FILES
= $(wildcard *.el
) vimrc VERSION
$(README_FILES
) $(SCRIPTS
) $(IN_FILES
) emacsclient.patch lexer-gcc-3.0.patch darwin.patch .cvsignore
24 NON_ESSENTIAL_DIST_FILES
= $(README_TXT_FILES
)
25 INSTALLATION_DIR
=$(datadir)
26 INSTALLATION_FILES
=$(configuration
) VERSION
30 STEPMAKE_TEMPLATES
=toplevel po
install
31 include $(depth
)/make
/stepmake.make
35 $(footify
) --index
=.
/ `$(FIND) . -maxdepth 1 -name '*.html' -print`
36 $(footify-all-command
)
39 $(MAKE
) -C
$(depth
)/mf
41 run-reqs
: builddir-setup fonts lily
42 web-reqs
: run-reqs pfa-fonts
45 $(MAKE
) -C Documentation
48 $(MAKE
) out
=www
-C Documentation WWW
52 $(MAKE
) MAKE_PFA_FILES
=1 -C mf
54 docdir
= $(prefix)/share
/doc
/lilypond-
$(TOPLEVEL_VERSION
)
55 install-html-doc
: html-doc
56 $(INSTALL
) -d
$(docdir
)/html
57 tar -C
$(docdir
)/html
-zxf
$(outdir
)/web.
tar.gz
59 # KPATHSEA=0: Hack for compiling without kpathsea -- not recommended
60 my_tfm_path
= $(TFM_PATH
) /tmp
/tmp
/tmp
/tmp
/tmp
/tmp
64 $(INSTALL
) -d
$(datadir)
66 $(foreach i
, 1 2 3 4 5, rm -f
$(datadir)/tfm.
$(i
); $(LN_S
) $(word $(i
), $(my_tfm_path
)) $(datadir)/tfm.
$(i
) ; )
70 TOP_HTMLS
= index.html short-examples.html long-examples.html
72 short-examples
: web-reqs
73 $(MAKE
) out
=www
-C input WWW
74 $(PYTHON
) $(buildscript-dir
)/mutopia-index.py
-o
$(builddir
)/$@.html input
/
76 long-examples
: web-reqs
77 $(MAKE
) out
=www
-C mutopia WWW
78 $(PYTHON
) $(buildscript-dir
)/mutopia-index.py
-o
$(builddir
)/$@.html mutopia
/
80 lily
: lily
/$(outdir
)/lilypond
82 lily
/$(outdir
)/lilypond
:
85 local-web
: web-doc
$(TOP_HTMLS
:%.html
=%) footify do-top-doc top-web
87 web-ext
= gz html midi pdf png txt
89 cd
$(builddir
) && rm -f
`find . -name \*.html~ -print`
90 cd
$(builddir
) && find Documentation input mutopia \
91 $(web-ext
:%=-path
'*/out-www/*.%' -or
) -false \
93 cd
$(builddir
) && ls
*.png
*.html
>> $(outdir
)/weblist
94 cat
$(outdir
)/weblist |
(cd
$(builddir
); GZIP
=-9v
tar -czf
$(outdir
)/web.
tar.gz
-T
-)
102 local-WWW-clean
: top-WWW-clean
105 $(MAKE
) -C Documentation WWW-clean
106 $(MAKE
) -C input WWW-clean
107 $(MAKE
) -C mutopia WWW-clean
110 cd
$(depth
)/$(builddir
) && rm -f
$(TOP_HTMLS
) lily-
[0-9]*.png
111 $(SHELL
) $(buildscript-dir
)/clean-fonts.sh
115 default
: builddir-setup
117 builddir-setup
: $(depth
)/$(builddir
)/share
/lilypond
/$(TOPLEVEL_VERSION
)-force
119 $(depth
)/$(builddir
)/share
/lilypond
/$(TOPLEVEL_VERSION
)-force:
120 # Preparing LilyPond tree for builddir exec
121 @cd
$(depth
)/$(builddir
) && rm -rf share
122 @cd
$(depth
)/$(builddir
) && mkdir
-p share
/lilypond
123 @cd
$(depth
)/$(builddir
)/share
/lilypond
&& mkdir
-p
$(TOPLEVEL_VERSION
)
124 @cd
$(depth
)/$(builddir
)/share
/lilypond
/$(TOPLEVEL_VERSION
) && \
125 ln
-s ..
/..
/..
/$(srcdir)/ly ly
&& \
126 ln
-s ..
/..
/..
/mf
/$(outconfbase
) dvips
&& \
127 ln
-s ..
/..
/..
/mf
/$(outconfbase
) afm
&& \
128 ln
-s ..
/..
/..
/mf
/$(outconfbase
) tfm
&& \
129 ln
-s ..
/..
/..
/$(srcdir)/mf
&& \
130 ln
-s ..
/..
/..
/$(srcdir)/ps
&& \
131 ln
-s ..
/..
/..
/$(srcdir)/scm
132 @cd
$(depth
)/$(builddir
)/share
/lilypond
/$(TOPLEVEL_VERSION
) && \
134 @cd
$(depth
)/$(builddir
)/share
/lilypond
/$(TOPLEVEL_VERSION
)/tex && \
135 ln
-s ..
/..
/..
/..
/$(srcdir)/tex source
&& \
136 ln
-s ..
/..
/..
/..
/mf
/$(outconfbase
) generate
137 @cd
$(depth
)/$(builddir
)/share
/lilypond
/$(TOPLEVEL_VERSION
) && \
139 @cd
$(depth
)/$(builddir
)/share
/lilypond
/$(TOPLEVEL_VERSION
)/fonts
&& \
140 ln
-s ..
/..
/..
/..
/$(srcdir)/mf source
&& \
141 ln
-s ..
/..
/..
/..
/mf
/$(outconfbase
) afm
&& \
142 ln
-s ..
/..
/..
/..
/mf
/$(outconfbase
) tfm
&& \
143 ln
-s ..
/..
/..
/..
/mf
/$(outconfbase
) type1