]> git.donarmstrong.com Git - lilypond.git/blob - make/Toplevel.make.in
release: 0.1.65
[lilypond.git] / make / Toplevel.make.in
1 # -*-Makefile-*-
2 ########################################################
3 # project  LilyPond -- the musical typesetter
4 # title    top level makefile for LilyPond  
5 # file     Makefile 
6 #
7 # Copyright (c) 1997 by    
8 #       Jan Nieuwenhuizen <jan@digicash.com>
9 #       Han-Wen Nienhuys <hanwen@stack.nl>
10
11 # subdir level:
12 #
13 depth = .
14 #
15
16 # identify module:
17 #
18 NAME = lilypond
19 SUBDIRS = bin flower lib lily mf mi2mu debian\
20         Documentation init input tex make mutopia test
21 include VERSION
22 #
23
24 # descent order into subdirectories:
25 #
26
27 # list of distribution files:
28 #
29 SCRIPTS = configure configure.in aclocal.m4
30 README_FILES = BUGS DEDICATION ANNOUNCE-0.1 ANNOUNCE \
31  COPYING ONEWS NEWS README TODO \
32  INSTALL$(DOTTEXT) AUTHORS$(DOTTEXT) PATCHES$(DOTTEXT)
33 EXTRA_DISTFILES = config.make.in config.hh.in .dstreamrc mudela-mode.el vimrc VERSION $(README_FILES) $(SCRIPTS) 
34
35
36
37 # generic targets and rules:
38 #
39 include ./$(depth)/make/Version.make
40 include ./$(depth)/make/Variables.make 
41 include ./$(depth)/make/Targets.make
42 include ./$(depth)/make/Rules.make
43
44 #
45 # override Variables.make:
46 # do not dist ./Makefile (is copied from make/Toplevel.make)
47
48 DISTFILES := $(EXTRA_DISTFILES)
49
50
51
52 localdist: configure
53
54 local-distclean: 
55         rm -f config.hh config.make Makefile config.cache config.status config.log
56
57 local-maintainerclean:
58         rm -f configure
59
60 Makefile: make/Toplevel.make.in
61         chmod +w $@
62         echo '# WARNING WARNING WARNING WARNING' > $@
63         echo '# do not edit! this is generated from make/Toplevel.make.in' >> $@
64         cat $< >> $@
65         chmod -w $@
66
67 website:examples htmldoc
68
69 htmldoc:
70         $(MAKE) CONFIGSUFFIX='www' local-WWW
71         $(MAKE) CONFIGSUFFIX='www' -C Documentation WWW
72         rm -f `find . -name \*.html~ -print`
73         tar cfz $(outdir)/htmldoc.tar.gz  `find Documentation -type d -name 'out-www' -print` out-www index.html
74
75 examples:
76         $(MAKE) CONFIGSUFFIX='www' outdirs
77         $(MAKE) CONFIGSUFFIX='www' -C input WWW
78         $(MAKE) CONFIGSUFFIX='www' -C mutopia WWW
79         tar --exclude='*.dvi' --exclude='*.tex' --exclude='*.ps' -czf $(outdir)/examples.tar.gz  `find input mutopia -type d -name 'out-www' -print`
80
81 local-WWW: index.html
82
83 index.html: Documentation/$(outdir)/topweb.html NEWS
84         $(sed-version) < Documentation/$(outdir)/topweb.html > $@
85         add-html-footer --news=NEWS $@
86
87 Documentation/$(outdir)/topweb.html: 
88         make -C Documentation/ html
89
90 WWW-clean:
91         $(MAKE) CONFIGSUFFIX='www' clean