]> git.donarmstrong.com Git - lilypond.git/blob - GNUmakefile.in
* input/puer-fragment.ly: bugfix: assigment of syllables "no-bis"
[lilypond.git] / GNUmakefile.in
1 # -*-Makefile-*-
2 # title    specific top level makefile for LilyPond  
3
4 # subdir level:
5 #
6 depth = .
7 #
8
9 # descent order into subdirectories
10
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
17 #
18
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
27
28 # bootstrap stepmake:
29 #
30 STEPMAKE_TEMPLATES=toplevel po install
31 include $(depth)/make/stepmake.make 
32
33 doc: 
34         $(MAKE) -C Documentation
35
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.* )
40
41 web-install: 
42         -$(INSTALL) -m 755 -d $(webdir) 
43         tar -C $(webdir)/ -xzf $(outdir)/web.tar.gz
44
45 local-install:
46         $(INSTALL) -d $(local_lilypond_datadir)
47
48 final-install:
49         @echo
50         @echo " *** Before running, buildscripts/out/lilypond-{profile,login}"
51         @echo " *** must be run. You're advised to source these scripts from your "
52         @echo " *** login scripts. For more information, see Invoking LilyPond in the manual."
53         @echo 
54
55 web-ext = gz html midi pdf png txt ly
56
57 footify = MAILADDRESS=bug-lilypond@gnu.org  $(PYTHON) $(step-bindir)/add-html-footer.py  --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION)
58
59 bla:
60         cd $(builddir) && $(footify) `$(FIND) . -name '*.html' -print`
61
62 local-WWW-post:  
63         $(PYTHON) $(buildscript-dir)/mutopia-index.py -o $(builddir)/examples.html ./
64         cd $(builddir) && $(footify) `$(FIND) . -name '*.html' -print`
65         cd $(builddir) && rm -f `find . -name \*.html~ -print`
66         cd $(builddir) && find Documentation input \
67                 $(web-ext:%=-path '*/out-www/*.%' -or) -false \
68                 > $(outdir)/weblist
69         echo '<META HTTP-EQUIV="refresh" content="0;URL=Documentation/out-www/index.html">' > $(builddir)/index.html
70         echo '<html><body>Redirecting to the documentation index...</body></html>' >> $(builddir)/index.html
71         cd $(builddir) && ls *.html >> $(outdir)/weblist
72         cat $(outdir)/weblist | (cd $(builddir); GZIP=-9v tar -czf $(outdir)/web.tar.gz  -T -)
73
74
75 src-ext = c cc yy ll hh icc py scm tex ps texi itexi tely itely sh
76
77 ALL-TAGS:
78         etags $(shell find . $(src-ext:%=-name '*.%' -or) -false | grep -v '/out')
79
80 web-clean:
81         $(SHELL) $(buildscript-dir)/clean-fonts.sh
82         $(MAKE) out=www clean
83
84
85
86 default: $(config_h) builddir-setup
87
88 builddir-setup: $(builddir)/share/lilypond-force
89
90 PO_FILES = $(wildcard $(srcdir)/po/*.po)
91 HELP_CATALOGS = $(PO_FILES:$(srcdir)/po/%.po=%)
92 CATALOGS = $(HELP_CATALOGS:lilypond=) 
93
94 $(builddir)/share/lilypond-force:
95 # Preparing LilyPond tree for builddir exec
96         cd $(builddir) && rm -rf lib share
97         mkdir -p $(builddir)/lib/lilypond
98         mkdir -p $(builddir)/share/lilypond
99         mkdir -p $(builddir)/share/lilypond/fonts
100         mkdir -p $(builddir)/share/lilypond/tex
101         cd $(builddir)/lib/lilypond && \
102                 ln -s  ../../python/$(outconfbase) python
103         cd $(builddir)/share/lilypond && \
104                 ln -s $(abs-srcdir)/ly ly && \
105                 ln -s ../../mf/$(outconfbase) dvips && \
106                 ln -s ../../mf/$(outconfbase) afm && \
107                 ln -s ../../mf/$(outconfbase) tfm && \
108                 ln -s $(abs-srcdir)/mf && \
109                 ln -s $(abs-srcdir)/ps && \
110                 ln -s ../../python/$(outconfbase) python && \
111                 ln -s $(abs-srcdir)/scm
112         cd $(builddir)/share/lilypond/tex && \
113                 ln -s $(abs-srcdir)/tex source && \
114                 ln -s ../../../mf/$(outconfbase) generate
115         cd $(builddir)/share/lilypond/fonts && \
116                 ln -s $(abs-srcdir)/mf source && \
117                 ln -s ../../../mf/$(outconfbase) afm && \
118                 ln -s ../../../mf/$(outconfbase) tfm && \
119                 ln -s ../../../mf/$(outconfbase) type1
120         $(foreach i,$(CATALOGS), \
121                 mkdir -p $(builddir)/share/locale/$i/LC_MESSAGES && \
122                 cd $(builddir)/share/locale/$i/LC_MESSAGES && \
123                 ln -fs ../../../../po/$(outconfbase)/$i.mo lilypond.mo &&) true
124         touch $@
125
126 local-clean: builddir-setup-clean
127 builddir-setup-clean:
128         cd $(builddir) && rm -rf share
129
130 $(config_h): configure.in aclocal.m4
131 #
132 # this is to prevent people from getting
133 # undefined symbols  when we add them to config.h.in,
134 # and they blindly run "cvs update; make".
135 #
136         @echo
137         @echo ' *** $(config_h) is out of date'
138         @echo ' *** Remove it and rerun autogen:'
139         @echo '         rm $(config_h); ./autogen.sh'
140         @echo
141         @false
142
143
144 # maybe move into private script?
145 rsync-web:
146         cd out-www &&  mkdir web && tar  -xzf web.tar.gz -C web
147         cd out-www/web &&  rsync --delete --stats --progress -lavu -e ssh . x:/var/www/lilypond/doc/v1.8/
148         cd out-www && rm -rf web/