* lily/paper-outputter.cc (output_version): change "Lily was here"
[lilypond.git] / GNUmakefile.in
blob4f8d9b775ee9866bd3a59c037ea41451f076c8bf
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 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
28 # bootstrap stepmake:
30 STEPMAKE_TEMPLATES=toplevel po install
31 include $(depth)/make/stepmake.make
33 doc:
34 $(MAKE) -C Documentation
36 pfa-fonts:
37 $(MAKE) MAKE_PFA_FILES=1 -C mf
38 # don't make fontball - we have binary packages for that.
40 install-pfa-fonts:
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
47 $(outdir)/$(deb):
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 $<
62 web-install:
63 -$(INSTALL) -m 755 -d $(webdir)
64 tar -C $(webdir)/ -xzf $(outdir)/web.tar.gz
66 local-install:
67 $(INSTALL) -d $(local_lilypond_datadir)
69 final-install:
70 @echo
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."
74 @echo
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)
80 bla:
81 cd $(builddir) && $(footify) `$(FIND) . -name '*.html' -print`
83 local-WWW-post:
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 \
89 > $(outdir)/weblist
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
98 ALL-TAGS:
99 etags $(shell find . $(src-ext:%=-name '*.%' -or) -false | grep -v '/out')
101 web-clean:
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
145 touch $@
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".
157 @echo
158 @echo ' *** $(config_h) is out of date'
159 @echo ' *** Remove it and rerun autogen:'
160 @echo ' rm $(config_h); ./autogen.sh'
161 @echo
162 @false
165 # maybe move into private script?
166 rsync-web:
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/