]> git.donarmstrong.com Git - lilypond.git/blob - make/toplevel.make.in
3e6ae7f4e15b8cb1fb4ecdbfca59b0b0a92b6ba1
[lilypond.git] / make / toplevel.make.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 = scripts buildscripts  flower lily mf midi2ly po debian \
12         Documentation ly input tex make mutopia intl $(builddir)/stepmake\
13         ps  scm
14 #
15
16 SCRIPTS = configure aclocal.m4
17 README_FILES =  DEDICATION COPYING NEWS TODO CHANGES ROADMAP
18 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.txt 
19 IN_FILES := $(wildcard *.in)
20 EXTRA_DIST_FILES = dstreamrc lilypond-mode.el vimrc VERSION $(README_FILES)  $(SCRIPTS) $(IN_FILES) 
21 NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
22
23 # bootstrap stepmake:
24 #
25 STEPMAKE_TEMPLATES=toplevel yolily-toplevel po
26 include $(depth)/make/stepmake.make 
27 #
28
29 website: fonts htmldoc examples  footify
30
31 footify:
32         $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
33         $(footify-all-command)
34
35 fonts:
36         $(MAKE) -C $(depth)/mf 
37
38 doc:
39         $(MAKE) -C Documentation
40
41 htmldoc: 
42         $(MAKE) out='www' local-WWW
43         $(MAKE) out='www' -C Documentation WWW
44         rm -f `find . -name \*.html~ -print`
45         $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
46         $(footify-all-command)
47         find `find Documentation -type d -name 'out-www'` -not -name '*dvi' -not -name '*ly' -not -name '*tex' -not -name '*.ps' -not -name 'out-www'  > wwwlist
48         tar cfz $(outdir)/htmldoc.tar.gz  `cat wwwlist` `ls *.png $(ERRORLOG)`  index.html
49
50 examples:
51         $(MAKE) out='www' -C input WWW
52         $(MAKE) out='www' -C mutopia WWW
53 # arg, should not break concept of recursive make;
54 # this breaks links (and dependencies, see above)
55
56 # don't understand this comment --hwn
57
58         $(PYTHON) $(buildscripts)/mutopia-index.py -o short-examples.html input/
59         $(PYTHON) $(buildscripts)/mutopia-index.py -o long-examples.html mutopia/
60 #$(footify-all-command)
61         $(footify) --index=./ `$(FIND) . -name '*.html' -print`
62         tar --exclude='*.dvi' --exclude='*.tex' --exclude='*.ps' --exclude='*.ppm' -czf $(outdir)/examples.tar.gz *-examples.html  `find input mutopia -type d -name 'out-www' -print`
63
64
65 localinstall:
66         mkdir -p $(datadir)
67
68 local-WWW-clean:
69         $(SHELL) $(depth)/buildscripts/clean-fonts.sh
70