]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/Toplevel.make.in
release: 1.0.1
[lilypond.git] / make / Toplevel.make.in
index ac3e42ec287e91ad0dce67b5ba91e175a313a26e..0784604257283c03d549cce7b6617ac9be46aa93 100644 (file)
@@ -1,78 +1,58 @@
 # -*-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 debian\
-       Documentation init input tex make mutopia
+include $(depth)/make/Stepmake.make 
 #
 
 # list of distribution files:
 #
-SCRIPTS = configure configure.in install-sh aclocal.m4
-README_FILES = BUGS DEDICATION ANNOUNCE-0.1 ANNOUNCE \
- COPYING ONEWS NEWS README TODO \
- INSTALL.txt AUTHORS.txt PATCHES.txt
-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)
-#
 
 
-# generic targets and rules:
-#
-include ./$(depth)/make/Targets.make
-include ./$(depth)/make/Rules.make
-#
+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: configure
+localdist: do-top-doc
 
-INSTALL.txt: check-doc-deps check-mf-deps
-       rm -f INSTALL.txt
-       ln `$(FIND) ./ -name INSTALL.txt -print |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' -print`; do \
-               rm -f $$i/* $$i/.build; done            
-       rm -rf *-build-dir
-       ( cd flower && rm -f config.cache config.status config.log )
-       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 $< >> $@
-       chmod -w $@