2 # title specific top level makefile for LilyPond
9 # descent order into subdirectories
11 SUBDIRS
= buildscripts python scripts \
15 cygwin debian
$(builddir
)/stepmake \
19 SCRIPTS
= configure aclocal.m4 autogen.sh
20 README_FILES
= ChangeLog COPYING DEDICATION README.mandrake ROADMAP THANKS
21 README_TXT_FILES
= AUTHORS.txt README.txt INSTALL.txt NEWS.txt
22 IN_FILES
:= $(wildcard *.in
)
23 EXTRA_DIST_FILES
= $(wildcard *.el
) vimrc VERSION
$(README_FILES
) $(SCRIPTS
) $(IN_FILES
) emacsclient.patch server.el.patch darwin.patch .cvsignore lexer-gcc-3.1.sh lilypond.
words
24 NON_ESSENTIAL_DIST_FILES
= $(README_TXT_FILES
)
25 INSTALLATION_DIR
=$(local_lilypond_datadir
)
26 INSTALLATION_FILES
=$(config_make
) VERSION
30 STEPMAKE_TEMPLATES
=toplevel po
install
31 include $(depth
)/make
/stepmake.make
34 $(MAKE
) -C Documentation
37 $(MAKE
) MAKE_PFA_FILES
=1 -C mf
38 # don't make fontball - we have binary packages for that.
41 $(MAKE
) MAKE_PFA_FILES
=1 -C mf
install
43 fontball
=type1-
$(TOPLEVEL_VERSION
).
tar.gz
44 deb
=lilypond_
$(TOPLEVEL_VERSION
)-1_i386.deb
45 debian-mirror
=http
://ftp.
$(LANG
).debian.org
48 wget
-P
$(outdir
) $(debian-mirror
)/debian
/pool
/main
/l
/lilypond
/$(deb
)
50 #lld=.$(local_lilypond_datadir)
51 lld
=.
/usr
/share
/lilypond
/$(TOPLEVEL_VERSION
)
52 $(outdir
)/$(fontball
): $(outdir
)/$(deb
)
53 rm -rf
$(outdir
)/.
/usr
54 ar p
$< data.
tar.gz | \
55 tar -C
$(outdir
) -zxf
- $(lld
)/dvips
$(lld
)/fonts
/type1
56 # strip the $(lld) part?
57 tar -C
$(outdir
) -czf
$@ .
/usr
59 get-pfa-fonts
: $(outdir
)/$(fontball
)
60 # install by hand from $<
63 -$(INSTALL
) -m
755 -d
$(webdir
)
64 tar -C
$(webdir
)/ -xzf
$(outdir
)/web.
tar.gz
67 $(INSTALL
) -d
$(local_lilypond_datadir
)
71 @echo
" *** Before running, buildscripts/out/lilypond-{profile,login}"
72 @echo
" *** must be run. You're advised to source these scripts from your "
73 @echo
" *** login scripts. For more information, see Invoking LilyPond in the manual."
76 web-ext
= gz html midi pdf png txt ly
78 footify
= MAILADDRESS
=bug-lilypond@gnu.org
$(PYTHON
) $(step-bindir
)/add-html-footer.py
--name
$(PACKAGE_NAME
) --version
$(TOPLEVEL_VERSION
)
81 cd
$(builddir
) && $(footify
) `$(FIND) . -name '*.html' -print`
84 $(PYTHON
) $(buildscript-dir
)/mutopia-index.py
-o
$(builddir
)/examples.html .
/
85 cd
$(builddir
) && $(footify
) `$(FIND) . -name '*.html' -print`
86 cd
$(builddir
) && rm -f
`find . -name \*.html~ -print`
87 cd
$(builddir
) && find Documentation input \
88 $(web-ext
:%=-path
'*/out-www/*.%' -or
) -false \
90 echo
'<META HTTP-EQUIV="refresh" content="0;URL=Documentation/out-www/index.html">' > $(builddir
)/index.html
91 echo
'<html><body>Redirecting to the documentation index...</body></html>' >> $(builddir
)/index.html
92 cd
$(builddir
) && ls
*.html
>> $(outdir
)/weblist
93 cat
$(outdir
)/weblist |
(cd
$(builddir
); GZIP
=-9v
tar -czf
$(outdir
)/web.
tar.gz
-T
-)
96 src-ext
= c
cc yy ll hh icc py scm
tex ps texi itexi tely itely sh
99 etags
$(shell find .
$(src-ext
:%=-name
'*.%' -or
) -false | grep
-v
'/out')
102 $(SHELL
) $(buildscript-dir
)/clean-fonts.sh
103 $(MAKE
) out
=www
clean
104 $(MAKE
) $(builddir
)/share
/lilypond-force
107 default
: $(config_h
) builddir-setup
109 builddir-setup
: $(builddir
)/share
/lilypond-force
111 PO_FILES
= $(wildcard $(srcdir)/po
/*.po
)
112 HELP_CATALOGS
= $(PO_FILES
:$(srcdir)/po
/%.po
=%)
113 CATALOGS
= $(HELP_CATALOGS
:lilypond
=)
115 $(builddir
)/share
/lilypond-force
:
116 # Preparing LilyPond tree for builddir exec
117 cd
$(builddir
) && rm -rf lib share
118 mkdir
-p
$(builddir
)/lib
/lilypond
119 mkdir
-p
$(builddir
)/share
/lilypond
120 mkdir
-p
$(builddir
)/share
/lilypond
/fonts
121 mkdir
-p
$(builddir
)/share
/lilypond
/tex
122 cd
$(builddir
)/lib
/lilypond
&& \
123 ln
-s ..
/..
/python
/$(outconfbase
) python
124 cd
$(builddir
)/share
/lilypond
&& \
125 ln
-s
$(abs-srcdir
)/ly ly
&& \
126 ln
-s ..
/..
/mf
/$(outconfbase
) dvips
&& \
127 ln
-s ..
/..
/mf
/$(outconfbase
) afm
&& \
128 ln
-s ..
/..
/mf
/$(outconfbase
) tfm
&& \
129 ln
-s
$(abs-srcdir
)/mf
&& \
130 ln
-s
$(abs-srcdir
)/ps
&& \
131 ln
-s ..
/..
/python
/$(outconfbase
) python
&& \
132 ln
-s
$(abs-srcdir
)/scm
133 cd
$(builddir
)/share
/lilypond
/tex && \
134 ln
-s
$(abs-srcdir
)/tex source
&& \
135 ln
-s ..
/..
/..
/mf
/$(outconfbase
) generate
136 cd
$(builddir
)/share
/lilypond
/fonts
&& \
137 ln
-s
$(abs-srcdir
)/mf source
&& \
138 ln
-s ..
/..
/..
/mf
/$(outconfbase
) afm
&& \
139 ln
-s ..
/..
/..
/mf
/$(outconfbase
) tfm
&& \
140 ln
-s ..
/..
/..
/mf
/$(outconfbase
) type1
141 $(foreach i
,$(CATALOGS
), \
142 mkdir
-p
$(builddir
)/share
/locale
/$i/LC_MESSAGES
&& \
143 cd
$(builddir
)/share
/locale
/$i/LC_MESSAGES
&& \
144 ln
-fs ..
/..
/..
/..
/po
/$(outconfbase
)/$i.mo lilypond.mo
&&) true
147 local-clean
: builddir-setup-clean
148 builddir-setup-clean
:
149 cd
$(builddir
) && rm -rf share
151 $(config_h
): configure.in aclocal.m4
153 # this is to prevent people from getting
154 # undefined symbols when we add them to config.h.in,
155 # and they blindly run "cvs update; make".
158 @echo
' *** $(config_h) is out of date'
159 @echo
' *** Remove it and rerun autogen:'
160 @echo
' rm $(config_h); ./autogen.sh'
165 # maybe move into private script?
167 cd out-www
&& mkdir web
&& tar -xzf web.
tar.gz
-C web
168 cd out-www
/web
&& rsync
--delete
--stats
--progress
-rltvu
-e ssh . x
:/var
/www
/lilypond
/doc
/v1.9
/
169 cd out-www
&& rm -rf web
/