# -*-Makefile-*-
-# @configure_input@
-########################################################
-# project LilyPond -- the musical typesetter
-# title top level makefile for LilyPond
-# file Makefile
-#
-# Copyright (c) 1997 by
-# Jan Nieuwenhuizen <jan@digicash.com>
-# Han-Wen Nienhuys <hanwen@stack.nl>
+# title specific top level makefile for LilyPond
# subdir level:
#
depth = .
#
-# identify module:
-#
-NAME = lilypond
-include VERSION
-include ./$(depth)/make/Version.make
-
-# generic variables:
+# descent order into subdirectories:
#
-include ./$(depth)/make/Variables.make
+SUBDIRS = scripts buildscripts flower lib lily mf mi2mu po debian \
+ Documentation init input tex make mutopia test intl $(stepmake)
#
-# descent order into subdirectories:
+SCRIPTS = configure aclocal.m4
+README_FILES = BUGS DEDICATION ANNOUNCE-0.1 ANNOUNCEMENT \
+ COPYING NEWS-0.1 NEWS-0.0 NEWS TODO
+README_TXT_FILES = README.txt AUTHORS.txt INSTALL.txt PATCHES.txt
+IN_FILES := $(wildcard *.in)
+EXTRA_DIST_FILES = dstreamrc mudela-mode.el vimrc VERSION $(README_FILES) $(SCRIPTS) $(IN_FILES)
+NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
+
+
+# bootstrap stepmake:
#
-SUBDIRS = bin flower lib lily mf mi2mu \
- Documentation init input tex make
+include $(depth)/make/Stepmake.make
#
# list of distribution files:
#
-SCRIPTS = configure configure.in install-sh aclocal.m4
-README_FILES = BUGS DEDICATION ANNOUNCE COPYING ONEWS NEWS README TODO \
- INSTALL.text AUTHORS.text
-EXTRA_DISTFILES = .dstreamrc mudela-mode.el VERSION $(README_FILES) $(SCRIPTS) $(SYMLINKS)
-# do not dist ./Makefile (is copied from make/Toplevel.make)
-DISTFILES:=$(EXTRA_DISTFILES)# Makefile $(ALL_SOURCES)
-#
+include $(stepdir)/Toplevel.make
+
+aclocal.m4: $(stepdir)/../aclocal.m4
+ cp $< $@
+
+website: examples htmldoc doc++
+
+examples:
+ $(MAKE) CONFIGSUFFIX='www' -C input WWW
+ $(MAKE) CONFIGSUFFIX='www' -C mutopia WWW
+ tar --exclude='*.dvi' --exclude='*.tex' --exclude='*.ps' -czf $(outdir)/examples.tar.gz `find input mutopia -type d -name 'out-www' -print`
-# generic targets and rules:
-#
-include ./$(depth)/make/Targets.make
-include ./$(depth)/make/Rules.make
-#
-localdist: configure
+localdist: do-top-doc
-INSTALL.text: check-doc-deps
- rm -f INSTALL.text
- ln `$(FIND) ./ -name INSTALL.text|head -1` .
+$(package-icon):
+ $(MAKE) -C Documentation/pictures icon
-# all machine generated junk resides in out/
-distclean:
- set -e; for i in `find -type d -name 'out'`; do \
- rm -f $$i/*; done
- rm -rf *-build-dir
- rm -f Makefile config.cache config.status config.log
+do-top-doc:
+ -$(MAKE) -C Documentation/topdocs/ README_TOP_FILES="$(README_TXT_FILES)" copy-to-top
-localclean:
- rm -f core config.cache config.log config.status
- rm -f $(outdir)/*.{class,html,gif}
+$(README_TXT_FILES): do-top-doc
-Makefile: make/Toplevel.make.in
- echo '# WARNING WARNING WARNING WARNING' > $@
- echo '# do not edit! this is generated from make/Toplevel.make.in' >> $@
- cat $< >> $@