2 ########################################################
3 # project LilyPond -- the musical typesetter
4 # title top level makefile for LilyPond
7 # Copyright (c) 1997 by
8 # Jan Nieuwenhuizen <jan@digicash.com>
9 # Han-Wen Nienhuys <hanwen@stack.nl>
19 SUBDIRS = bin flower lib lily mf mi2mu debian\
20 Documentation init input tex make mutopia test
24 # descent order into subdirectories:
27 # list of distribution files:
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)
37 # generic targets and rules:
39 include ./$(depth)/make/Version.make
40 include ./$(depth)/make/Variables.make
41 include ./$(depth)/make/Targets.make
42 include ./$(depth)/make/Rules.make
45 # override Variables.make:
46 # do not dist ./Makefile (is copied from make/Toplevel.make)
48 DISTFILES := $(EXTRA_DISTFILES)
55 rm -f config.hh config.make Makefile config.cache config.status config.log
57 local-maintainerclean:
60 Makefile: make/Toplevel.make.in
62 echo '# WARNING WARNING WARNING WARNING' > $@
63 echo '# do not edit! this is generated from make/Toplevel.make.in' >> $@
67 website:examples 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
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`
83 index.html: Documentation/$(outdir)/topweb.html NEWS
84 $(sed-version) < Documentation/$(outdir)/topweb.html > $@
85 add-html-footer --news=NEWS $@
87 Documentation/$(outdir)/topweb.html:
88 make -C Documentation/ html
91 $(MAKE) CONFIGSUFFIX='www' clean