# -*-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>
-# ...your sort order here, or how to comment-out a comment
+# 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 = flower lib lily mi2mu \
- Documentation bin init input tex make
+include $(depth)/make/Stepmake.make
#
# list of distribution files:
#
-SCRIPTS = configure configure.in install-sh
-README_FILES = ANNOUNCE COPYING NEWS README TODO INSTALL.text
-EXTRA_DISTFILES= .dstreamrc .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`
+
+
+localdist: do-top-doc
+
+$(package-icon):
+ $(MAKE) -C Documentation/pictures icon
-# generic targets and rules:
-#
-include ./$(depth)/make/Targets.make
-include ./$(depth)/make/Rules.make
-#
-localdist: configure
-INSTALL.text: check-doc-deps
- rm -f INSTALL.text
- ln `find -name INSTALL.text|head -1` .
+do-top-doc:
+ -$(MAKE) -C Documentation/topdocs/ README_TOP_FILES="$(README_TXT_FILES)" copy-to-top
-localclean:
- rm -f $(allexe) core config.cache config.log config.status
- rm -f $(outdir)/*.{class,html,gif}
+$(README_TXT_FILES): do-top-doc
-localinstall: all
- $(INSTALL) -d $(bindir)
- $(INSTALL) -m 755 $(allexe) $(bindir)
-localuninstall:
- for i in $(allexe); do rm -f $(bindir)/`basename $$i`; done