2 # title specific top level makefile for LilyPond
9 # descent order into subdirectories
11 SUBDIRS
= buildscripts python scripts \
16 cygwin debian stepmake \
21 SCRIPTS
= configure aclocal.m4 autogen.sh lexer-gcc-3.1.sh
22 README_FILES
= ChangeLog COPYING DEDICATION ROADMAP THANKS
23 README_TXT_FILES
= AUTHORS.txt README.txt INSTALL.txt NEWS.txt
24 IN_FILES
:= $(wildcard *.in
)
25 PATCH_FILES
= emacsclient.patch server.el.patch darwin.patch
26 EXTRA_DIST_FILES
= VERSION .cvsignore
$(README_FILES
) $(SCRIPTS
) $(IN_FILES
) \
28 NON_ESSENTIAL_DIST_FILES
= $(README_TXT_FILES
)
29 INSTALLATION_DIR
=$(local_lilypond_datadir
)
30 INSTALLATION_FILES
=$(config_make
) VERSION
34 STEPMAKE_TEMPLATES
=toplevel po
install
35 include $(depth
)/make
/stepmake.make
38 $(MAKE
) -C Documentation
41 -$(INSTALL
) -m
755 -d
$(webdir
)
42 tar -C
$(webdir
)/ -xzf
$(outdir
)/web.
tar.gz
43 # install-WWW does not recurse; fake it visiting Documentation/user manually
44 $(MAKE
) -C Documentation
/user local-install-WWW
47 $(MAKE
) out
=www install-WWW
53 $(MAKE
) out
=www uninstall-WWW
=
56 $(INSTALL
) -d
$(local_lilypond_datadir
)
60 @echo
" *** Before running, buildscripts/out/lilypond-{profile,login}"
61 @echo
" *** must be run. You're advised to source these scripts from your "
62 @echo
" *** login scripts. For more information, see Invoking LilyPond in the manual."
65 web-ext
= gz html midi pdf png txt ly
67 footify
= MAILADDRESS
=bug-lilypond@gnu.org
$(PYTHON
) $(step-bindir
)/add-html-footer.py
--name
$(PACKAGE_NAME
) --version
$(TOPLEVEL_VERSION
)
70 $(PYTHON
) $(buildscript-dir
)/mutopia-index.py
-o
$(builddir
)/examples.html .
/
71 cd
$(builddir
) && $(footify
) `$(FIND) . -name '*.html' -print`
72 cd
$(builddir
) && rm -f
`find . -name \*.html~ -print`
73 cd
$(builddir
) && find Documentation input \
74 $(web-ext
:%=-path
'*/out-www/*.%' -or
) -false \
76 echo
'<META HTTP-EQUIV="refresh" content="0;URL=Documentation/out-www/index.html">' > $(builddir
)/index.html
77 echo
'<html><body>Redirecting to the documentation index...</body></html>' >> $(builddir
)/index.html
78 cd
$(builddir
) && ls
*.html
>> $(outdir
)/weblist
79 cat
$(outdir
)/weblist |
(cd
$(builddir
); GZIP
=-9v
tar -czf
$(outdir
)/web.
tar.gz
-T
-)
82 src-ext
= c
cc yy ll hh icc py scm
tex ps texi itexi tely itely sh
86 $(MAKE
) $(builddir
)/share
/lilypond-force
88 default
: $(config_h
) builddir-setup
90 builddir-setup
: $(builddir
)/share
/lilypond-force
92 PO_FILES
= $(wildcard $(srcdir)/po
/*.po
)
93 HELP_CATALOGS
= $(PO_FILES
:$(srcdir)/po
/%.po
=%)
94 CATALOGS
= $(HELP_CATALOGS
:lilypond
=)
96 $(builddir
)/share
/lilypond-force
:
97 # Preparing LilyPond tree for builddir exec
98 cd
$(builddir
) && rm -rf lib share
99 mkdir
-p
$(builddir
)/lib
/lilypond
100 mkdir
-p
$(builddir
)/share
/lilypond
101 mkdir
-p
$(builddir
)/share
/lilypond
/elisp
102 mkdir
-p
$(builddir
)/share
/lilypond
/fonts
103 mkdir
-p
$(builddir
)/share
/lilypond
/tex
104 cd
$(builddir
)/lib
/lilypond
&& \
105 ln
-s ..
/..
/python
/$(outconfbase
) python
106 cd
$(builddir
)/share
/lilypond
&& \
107 ln
-s
$(abs-srcdir
)/ly ly
&& \
108 ln
-s ..
/..
/mf
/$(outconfbase
) dvips
&& \
109 ln
-s ..
/..
/mf
/$(outconfbase
) afm
&& \
110 ln
-s ..
/..
/mf
/$(outconfbase
) tfm
&& \
111 ln
-s
$(abs-srcdir
)/mf
&& \
112 ln
-s
$(abs-srcdir
)/ps
&& \
113 ln
-s ..
/..
/python
/$(outconfbase
) python
&& \
114 ln
-s
$(abs-srcdir
)/scm
115 cd
$(builddir
)/share
/lilypond
/tex && \
116 ln
-s
$(abs-srcdir
)/tex source
&& \
117 ln
-s ..
/..
/..
/mf
/$(outconfbase
) generate
118 cd
$(builddir
)/share
/lilypond
/fonts
&& \
119 ln
-s
$(abs-srcdir
)/mf source
&& \
120 ln
-s ..
/..
/..
/mf
/$(outconfbase
) afm
&& \
121 ln
-s ..
/..
/..
/mf
/$(outconfbase
) tfm
&& \
122 ln
-s ..
/..
/..
/mf
/$(outconfbase
) type1
123 cd
$(builddir
)/share
/lilypond
/elisp
&& \
124 ln
-sf ..
/..
/..
/elisp
/$(outconfbase
)/lilypond-words.el .
&& \
125 ln
-s
$(abs-srcdir
)/elisp
/*.el .
126 $(foreach i
,$(CATALOGS
), \
127 mkdir
-p
$(builddir
)/share
/locale
/$i/LC_MESSAGES
&& \
128 cd
$(builddir
)/share
/locale
/$i/LC_MESSAGES
&& \
129 ln
-fs ..
/..
/..
/..
/po
/$(outconfbase
)/$i.mo lilypond.mo
&&) true
132 local-clean
: builddir-setup-clean
133 builddir-setup-clean
:
134 cd
$(builddir
) && rm -rf share
136 $(config_h
): config.hh.in
138 # this is to prevent people from getting
139 # undefined symbols when we add them to config.h.in,
140 # and they blindly run "cvs update; make".
143 @echo
' *** $(config_h) is out of date'
144 @echo
' *** Remove it and rerun autogen:'
145 @echo
' rm $(config_h); ./autogen.sh'