* Documentation/user/internals.itely (Manipulating music
[lilypond.git] / GNUmakefile.in
blob09830cffe143869e96592837fb17991204894bb2
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
33 doc:
34 $(MAKE) -C Documentation
36 pfa-fonts:
37 $(MAKE) MAKE_PFA_FILES=1 -C mf
38 (cd $(builddir)/share/lilypond/fonts && \
39 tar czvf ../../../$(outbase)/type1.tar.gz type1/*.pfa type1/fonts.* type1/lilypond.* )
41 html-doc: web
42 install-html-doc:
43 $(INSTALL) -m 755 -d $(local_package_docdir)
44 tar -C $(local_package_docdir)/ -xzf $(outdir)/web.tar.gz
46 local-install:
47 $(INSTALL) -d $(local_lilypond_datadir)
49 final-install:
50 @echo
51 @echo " *** Before running, buildscripts/out/lilypond-{profile,login}"
52 @echo " *** must be run. You're advised to source these scripts from your "
53 @echo " *** login scripts. For more information, see Invoking LilyPond in the manual."
54 @echo
56 web-ext = gz html midi pdf png txt ly
58 footify=$(PYTHON) $(step-bindir)/add-html-footer.py --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION)
60 local-web-post:
61 $(footify) `$(FIND) . -name '*.html' -print`
62 cd $(builddir) && rm -f `find . -name \*.html~ -print`
63 cd $(builddir) && find Documentation input \
64 $(web-ext:%=-path '*/out-www/*.%' -or) -false \
65 > $(outdir)/weblist
66 echo '<META HTTP-EQUIV="refresh" content="2;URL=Documentation/out-www/index.html">' > $(builddir)/index.html
67 cd $(builddir) && ls *.html >> $(outdir)/weblist
68 cat $(outdir)/weblist | (cd $(builddir); GZIP=-9v tar -czf $(outdir)/web.tar.gz -T -)
70 src-ext = c cc yy ll hh icc py scm tex ps texi itexi tely itely sh
72 ALL-TAGS:
73 etags $(shell find . $(src-ext:%=-name '*.%' -or) -false | grep -v '/out')
75 web-clean:
76 $(SHELL) $(buildscript-dir)/clean-fonts.sh
77 $(MAKE) out=www clean
81 default: $(config_h) builddir-setup
83 builddir-setup: $(builddir)/share/lilypond-force
85 PO_FILES = $(wildcard $(srcdir)/po/*.po)
86 HELP_CATALOGS = $(PO_FILES:$(srcdir)/po/%.po=%)
87 CATALOGS = $(HELP_CATALOGS:lilypond=)
89 $(builddir)/share/lilypond-force:
90 # Preparing LilyPond tree for builddir exec
91 cd $(builddir) && rm -rf lib share
92 mkdir -p $(builddir)/lib/lilypond
93 mkdir -p $(builddir)/share/lilypond
94 mkdir -p $(builddir)/share/lilypond/fonts
95 mkdir -p $(builddir)/share/lilypond/tex
96 cd $(builddir)/lib/lilypond && \
97 ln -s ../../python/$(outconfbase) python
98 cd $(builddir)/share/lilypond && \
99 ln -s $(abs-srcdir)/ly ly && \
100 ln -s ../../mf/$(outconfbase) dvips && \
101 ln -s ../../mf/$(outconfbase) afm && \
102 ln -s ../../mf/$(outconfbase) tfm && \
103 ln -s $(abs-srcdir)/mf && \
104 ln -s $(abs-srcdir)/ps && \
105 ln -s ../../python/$(outconfbase) python && \
106 ln -s $(abs-srcdir)/scm
107 cd $(builddir)/share/lilypond/tex && \
108 ln -s $(abs-srcdir)/tex source && \
109 ln -s ../../../mf/$(outconfbase) generate
110 cd $(builddir)/share/lilypond/fonts && \
111 ln -s $(abs-srcdir)/mf source && \
112 ln -s ../../../mf/$(outconfbase) afm && \
113 ln -s ../../../mf/$(outconfbase) tfm && \
114 ln -s ../../../mf/$(outconfbase) type1
115 $(foreach i,$(CATALOGS), \
116 mkdir -p $(builddir)/share/locale/$i/LC_MESSAGES && \
117 cd $(builddir)/share/locale/$i/LC_MESSAGES && \
118 ln -fs ../../../../po/$(outconfbase)/$i.mo lilypond.mo &&) true
119 touch $@
121 local-clean: builddir-setup-clean
122 builddir-setup-clean:
123 cd $(builddir) && rm -rf share
125 $(config_h): configure.in aclocal.m4
127 # this is to prevent people from getting
128 # undefined symbols when we add them to config.h.in,
129 # and they blindly run "cvs update; make".
131 @echo
132 @echo ' *** $(config_h) is out of date'
133 @echo ' *** Remove it and rerun autogen:'
134 @echo ' rm $(config_h); ./autogen.sh'
135 @echo
136 @false