* ly/engraver-init.ly (VoiceContext): move Note_head_line_engraver
[lilypond.git] / GNUmakefile.in
blob710db8f04c5dd3270da7f122f7e518c7d318ee0a
1 # -*-Makefile-*-
2 # title specific top level makefile for LilyPond
4 # subdir level:
6 depth = .
9 # descent order into subdirectories
11 SUBDIRS = buildscripts python scripts \
12 flower lily \
13 mf ly tex ps scm \
14 po make \
15 cygwin debian $(builddir)/stepmake \
16 Documentation input
19 SCRIPTS = configure aclocal.m4 autogen.sh
20 README_FILES = ChangeLog COPYING DEDICATION NEWS README.mandrake ROADMAP THANKS
21 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.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 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=$(configuration) VERSION
28 # bootstrap stepmake:
30 STEPMAKE_TEMPLATES=toplevel po install
31 include $(depth)/make/stepmake.make
34 footify:
35 $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
36 $(footify-all-command)
38 fonts:
39 $(MAKE) -C $(depth)/mf
41 run-reqs: builddir-setup fonts lily
42 web-reqs: run-reqs pfa-fonts
44 doc: run-reqs
45 $(MAKE) -C Documentation
47 web-doc: web-reqs
48 $(MAKE) out=www LILYPOND_BOOK_FORMAT=texi-html -C input/regression/ WWW
49 $(MAKE) out=www LILYPOND_BOOK_FORMAT=texi-html -C input/template/ WWW
50 $(MAKE) out=www LILYPOND_BOOK_FORMAT=texi-html -C input/test/ WWW
51 $(MAKE) out=www LILYPOND_BOOK_FORMAT=texi-html -C Documentation WWW
52 $(MAKE) footify
54 pfa-fonts:
55 $(MAKE) MAKE_PFA_FILES=1 -C mf
56 (cd $(builddir)/share/lilypond/fonts && \
57 tar czvf ../../../$(outbase)/type1.tar.gz type1/*.pfa type1/fonts.* type1/lilypond.* )
59 install-html-doc: web-doc top-web
60 $(INSTALL) -m 755 -d $(local_package_docdir)
61 tar -C $(local_package_docdir)/ -xzf $(outdir)/web.tar.gz
63 # KPATHSEA=0: Hack for compiling without kpathsea -- not recommended
64 my_tfm_path = $(TFM_PATH) /tmp /tmp /tmp /tmp /tmp /tmp
66 local-install:
67 $(INSTALL) -d $(local_lilypond_datadir)
68 ifeq ($(KPATHSEA),0)
69 $(foreach i, 1 2 3 4 5, rm -f $(local_lilypond_datadir)/tfm.$(i); $(LN_S) $(word $(i), $(my_tfm_path)) $(local_lilypond_datadir)/tfm.$(i) ; )
70 endif
73 final-install:
74 @echo
75 @echo " *** Before running, buildscripts/out/lilypond-{profile,login}"
76 @echo " *** must be run. You're advised to source these scripts from your "
77 @echo " *** login scripts. For more information, see Invoking LilyPond in the manual."
78 @echo
80 TOP_HTMLS = index.html examples.html
82 examples: web-reqs
83 $(MAKE) out=www -C input WWW
84 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o $(builddir)/$@.html input/
86 lily: lily/$(outdir)/lilypond
88 lily/$(outdir)/lilypond:
89 $(MAKE) -C lily
91 local-web: web-doc $(TOP_HTMLS:%.html=%) footify do-top-doc top-web
94 web-ext = gz html midi pdf png txt ly
95 top-web:
96 cd $(builddir) && rm -f `find . -name \*.html~ -print`
97 cd $(builddir) && find Documentation input \
98 $(web-ext:%=-path '*/out-www/*.%' -or) -false \
99 > $(outdir)/weblist
100 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o $(builddir)/$@.html input/
101 cd $(builddir) && ls *.png *.html >> $(outdir)/weblist
102 cat $(outdir)/weblist | (cd $(builddir); GZIP=-9v tar -czf $(outdir)/web.tar.gz -T -)
104 src-ext = c cc yy ll hh icc py scm tex ps texi itexi tely itely sh
105 ALL-TAGS:
106 etags $(shell find . $(src-ext:%=-name '*.%' -or) -false | grep -v '/out')
108 local-WWW:
110 web: local-web
111 html-doc: web
112 index: web
114 local-WWW-clean: top-WWW-clean
116 WWW-clean:
117 $(MAKE) -C Documentation WWW-clean
118 $(MAKE) -C input WWW-clean
120 top-WWW-clean:
121 cd $(builddir) && rm -f $(TOP_HTMLS) lily-[0-9]*.png
122 $(SHELL) $(buildscript-dir)/clean-fonts.sh
124 WWW:
126 default: $(config_h) builddir-setup
128 builddir-setup: $(builddir)/share/lilypond-force
130 PO_FILES = $(wildcard $(srcdir)/po/*.po)
131 HELP_CATALOGS = $(PO_FILES:$(srcdir)/po/%.po=%)
132 CATALOGS = $(HELP_CATALOGS:lilypond=)
134 $(builddir)/share/lilypond-force:
135 # Preparing LilyPond tree for builddir exec
136 cd $(builddir) && rm -rf lib share
137 mkdir -p $(builddir)/lib/lilypond
138 mkdir -p $(builddir)/share/lilypond
139 mkdir -p $(builddir)/share/lilypond/fonts
140 mkdir -p $(builddir)/share/lilypond/tex
141 cd $(builddir)/lib/lilypond && \
142 ln -s ../../python/$(outconfbase) python
143 cd $(builddir)/share/lilypond && \
144 ln -s $(abs-srcdir)/ly ly && \
145 ln -s ../../mf/$(outconfbase) dvips && \
146 ln -s ../../mf/$(outconfbase) afm && \
147 ln -s ../../mf/$(outconfbase) tfm && \
148 ln -s $(abs-srcdir)/mf && \
149 ln -s $(abs-srcdir)/ps && \
150 ln -s ../../python/$(outconfbase) python && \
151 ln -s $(abs-srcdir)/scm
152 cd $(builddir)/share/lilypond/tex && \
153 ln -s $(abs-srcdir)/tex source && \
154 ln -s ../../../mf/$(outconfbase) generate
155 cd $(builddir)/share/lilypond/fonts && \
156 ln -s $(abs-srcdir)/mf source && \
157 ln -s ../../../mf/$(outconfbase) afm && \
158 ln -s ../../../mf/$(outconfbase) tfm && \
159 ln -s ../../../mf/$(outconfbase) type1
160 $(foreach i,$(CATALOGS), \
161 mkdir -p $(builddir)/share/locale/$i/LC_MESSAGES && \
162 cd $(builddir)/share/locale/$i/LC_MESSAGES && \
163 ln -fs ../../../../po/$(outconfbase)/$i.mo lilypond.mo &&) true
164 touch $@
166 local-clean: builddir-setup-clean
167 builddir-setup-clean:
168 cd $(builddir) && rm -rf share
170 $(config_h): configure.in aclocal.m4
172 # this is to prevent people from getting
173 # undefined symbols when we add them to config.h.in,
174 # and they blindly run "cvs update; make".
176 @echo
177 @echo ' *** $(config_h) is out of date'
178 @echo ' *** Remove it and rerun autogen:'
179 @echo ' rm $(config_h); ./autogen.sh'
180 @echo
181 @false