]> git.donarmstrong.com Git - lilypond.git/blob - GNUmakefile.in
* buildscripts/mutopia-index.py (headertext_nopics): Add missing
[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 scripts flower lily \
12         mf ly tex ps scm \
13         python po make intl \
14         debian $(builddir)/stepmake \
15         Documentation input \
16         mutopia 
17 #
18
19 SCRIPTS = configure aclocal.m4 autogen.sh
20 README_FILES =  ChangeLog CHANGES COPYING DEDICATION NEWS README.mandrake ROADMAP
21 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.txt FAQ.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 darwin.patch .cvsignore
24 NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
25 INSTALLATION_DIR=$(datadir)
26 INSTALLATION_FILES=$(configuration) VERSION
27
28 # bootstrap stepmake:
29 #
30 STEPMAKE_TEMPLATES=toplevel po install
31 include $(depth)/make/stepmake.make 
32 #
33
34 footify:
35         $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
36         $(footify-all-command)
37
38 fonts:
39         $(MAKE) -C $(depth)/mf
40
41 doc: lily fonts
42         $(MAKE) -C Documentation
43
44 web-doc:  pfa-fonts
45         $(MAKE) out=www -C Documentation WWW
46         $(MAKE) footify
47
48 pfa-fonts:
49         $(MAKE) MAKE_PFA_FILES=1 -C mf
50
51 docdir = $(prefix)/share/doc/lilypond-$(TOPLEVEL_VERSION)
52 install-html-doc: html-doc
53         $(INSTALL) -d $(docdir)/html 
54         tar -C $(docdir)/html -zxf $(outdir)/web.tar.gz
55
56 # KPATHSEA=0: Hack for compiling without kpathsea -- not recommended
57 my_tfm_path = $(TFM_PATH) /tmp /tmp /tmp /tmp /tmp /tmp 
58
59
60 local-install:
61         $(INSTALL) -d $(datadir)
62 ifeq ($(KPATHSEA),0)
63         $(foreach i, 1 2 3 4 5, rm -f $(datadir)/tfm.$(i); $(LN_S) $(word $(i), $(my_tfm_path)) $(datadir)/tfm.$(i) ; )
64 endif
65
66
67 TOP_HTMLS = index.html short-examples.html long-examples.html
68
69 short-examples: pfa-fonts
70         $(MAKE) out=www -C input WWW
71         $(PYTHON) $(buildscript-dir)/mutopia-index.py -o short-examples.html input/
72
73
74 long-examples: pfa-fonts
75         $(MAKE) out=www -C mutopia WWW
76         $(PYTHON) $(buildscript-dir)/mutopia-index.py -o long-examples.html mutopia/
77
78 lily: lily/$(outdir)/lilypond
79
80 lily/$(outdir)/lilypond:
81         $(MAKE) -C lily
82
83 local-web: fontpaths fonts lily $(TOP_HTMLS:%.html=%) footify do-top-doc top-web
84
85 top-web:
86         cd $(builddir) && rm -f `find . -name \*.html~ -print`
87         cd $(builddir) && find `find Documentation input mutopia -type d -name 'out-www'` \
88                 -not -name '*.dvi' -not -name '*ly' -not -name '*.tex' \
89                 -not -name '*.ps' -not -name '*.eps' -not -name '*pk' \
90                 -not -name '*.aux' -not -name '*.cp' -not -name '*.fn' \
91                 -not -name '*.vr' -not -name '*.yp' -not -name '*.ky' \
92                 -not -name '*.pg' -not -name '*.tmp' -not -name '*.toc' \
93                 -not -name '*.fns' -not -name '*.cps' -not -name '*.nexi' \
94                 -not -name '*.texi' -not -name '*.texidoc' -not -name '*.tp' \
95                 -not -name '*.pdfps' -not -name '*.eps.bbox' \
96                 -not -name '*.log' -not -name 'out-www' -not -name '*.dep' \
97             > $(outdir)/weblist
98         cd $(builddir) && ls *.png *.html >> $(outdir)/weblist
99         cat $(outdir)/weblist | (cd $(builddir); GZIP=-9v tar -czf $(outdir)/web.tar.gz  -T -)
100
101 #WWW: local-WWW
102
103 html-doc: local-web
104 web: local-web
105 index: local-web
106
107 local-WWW-clean: top-WWW-clean
108
109 WWW-clean:
110         $(MAKE) -C Documentation WWW-clean
111         $(MAKE) -C input WWW-clean
112         $(MAKE) -C mutopia WWW-clean
113
114 top-WWW-clean:
115         rm -f $(TOP_HTMLS) lily-[0-9]*.png
116         $(SHELL) $(buildscript-dir)/clean-fonts.sh
117
118
119
120 WWW:
121
122 fontpaths:
123         -ln -s $(depth)/mf/out dvips
124         -mkdir -p fonts
125         -rm fonts/source
126         -ln -s ../$(depth)/mf fonts/source
127         -ln -s ../$(depth)/mf/out fonts/afm
128         -ln -s ../$(depth)/mf/out fonts/tfm
129         -ln -s ../$(depth)/mf/out fonts/type1