# -*-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
# subdir level:
#
# identify module:
#
NAME = lilypond
-include .version
+include VERSION
include ./$(depth)/make/Version.make
# generic variables:
# descent order into subdirectories:
#
-SUBDIRS = flower lib lily mi2mu \
- Documentation bin init input tex make
+SUBDIRS = bin flower lib lily mf mi2mu debian\
+ Documentation init input tex 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)
+SCRIPTS = configure configure.in install-sh aclocal.m4
+README_FILES = BUGS DEDICATION ANNOUNCE-0.1 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)
localdist: configure
-INSTALL.text: check-doc-deps
+INSTALL.text: check-doc-deps check-mf-deps
rm -f INSTALL.text
- ln `find -name INSTALL.text|head -1` .
+ ln `$(FIND) ./ -name INSTALL.text|head -1` .
+
-localdistclean:
- rm -rf Makefile $(lily-version) $(flower-version) $(mi2mu-version) .b $(build) *~ $(allout) $(allgen) config.cache config.status
+# 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
localclean:
- rm -f $(allexe) core config.cache config.log config.status
+ rm -f core config.cache config.log config.status
rm -f $(outdir)/*.{class,html,gif}
-localinstall: all
- $(INSTALL) -d $(bindir)
- $(INSTALL) -m 755 $(allexe) $(bindir)
+Makefile: make/Toplevel.make.in
+ echo '# WARNING WARNING WARNING WARNING' > $@
+ echo '# do not edit! this is generated from make/Toplevel.make.in' >> $@
+ cat $< >> $@
-localuninstall:
- for i in $(allexe); do rm -f $(bindir)/`basename $$i`; done