]> git.donarmstrong.com Git - lilypond.git/blob - GNUmakefile.in
patch::: 1.3.142.jcn1
[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 mf midi2ly po \
12         Documentation ly input tex make intl ps scm \
13         debian $(builddir)/stepmake \
14         mutopia ports
15 #
16
17 SCRIPTS = configure aclocal.m4
18 README_FILES =  DEDICATION COPYING NEWS CHANGES ROADMAP
19 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.txt FAQ.txt
20 IN_FILES := $(wildcard *.in)
21 EXTRA_DIST_FILES = lilypond-font-lock.el lilypond-mode.el vimrc VERSION $(README_FILES)  $(SCRIPTS) $(IN_FILES)  emacsclient.patch
22 NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
23 INSTALLATION_DIR=$(datadir)
24 INSTALLATION_FILES=$(configuration) VERSION
25
26 # bootstrap stepmake:
27 #
28 STEPMAKE_TEMPLATES=toplevel po install
29 include $(depth)/make/stepmake.make 
30 #
31
32 footify:
33         $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
34         $(footify-all-command)
35
36 fonts:
37         $(MAKE) -C $(depth)/mf
38
39 doc: lily fonts
40         $(MAKE) -C Documentation
41
42 web-doc: 
43         $(MAKE) out=www -C Documentation WWW
44         $(MAKE) footify
45
46 # KPATHSEA=0: Hack for compiling without kpathsea -- not recommended
47 my_tfm_path = $(TFM_PATH) /tmp /tmp /tmp /tmp /tmp /tmp 
48
49
50 local-install:
51         mkdir -p $(datadir)
52 ifeq ($(KPATHSEA),0)
53         $(foreach i, 1 2 3 4 5, rm -f $(datadir)/tfm.$(i); $(LN_S) $(word $(i), $(my_tfm_path)) $(datadir)/tfm.$(i) ; )
54 endif
55
56
57 TOP_HTMLS = index.html short-examples.html long-examples.html
58
59 index: web-doc
60
61 short-examples:
62         $(MAKE) out=www -C input WWW
63         $(PYTHON) $(buildscript-dir)/mutopia-index.py -o short-examples.html input/
64
65
66 long-examples:
67         $(MAKE) out=www -C mutopia WWW
68         $(PYTHON) $(buildscript-dir)/mutopia-index.py -o long-examples.html mutopia/
69
70 lily: lily/$(outdir)/lilypond
71
72 lily/$(outdir)/lilypond:
73         $(MAKE) -C lily
74
75 local-web: fonts lily $(TOP_HTMLS:%.html=%) footify do-top-doc top-web
76
77 top-web:
78         rm -f `find . -name \*.html~ -print`
79         find `find Documentation input mutopia *.png index.html -type d -name 'out-www'` -not -name '*dvi' -not -name '*ly' -not -name '*tex' -not -name '*.ps' -not -name 'out-www' | tar -czf $(outdir)/web.tar.gz  -T -
80
81 #WWW: local-WWW
82
83 web: local-web
84
85 local-WWW-clean: top-WWW-clean
86
87 WWW-clean:
88         $(MAKE) -C Documentation WWW-clean
89         $(MAKE) -C input WWW-clean
90         $(MAKE) -C mutopia WWW-clean
91
92 top-WWW-clean:
93         rm -f $(TOP_HTMLS)
94         $(SHELL) $(buildscript-dir)/clean-fonts.sh
95
96
97
98 WWW: