-MAJVER=0
-MINVER=0
-PATCHLEVEL=1
-
-#
+# -*-Makefile-*-
+########################################################
+# 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>
-include Sources.make
-progdocs=$(hdr) $(mycc)
-gencc=parser.cc lexer.cc
-cc=$(mycc) $(gencc)
-obs=$(cc:.cc=.o)
-
-
-#dist
-
-DOCDIR=docdir
-VERSION=$(MAJVER).$(MINVER).$(PATCHLEVEL)
-PACKAGENAME=lilypond
-DNAME=$(PACKAGENAME)-$(VERSION)
-othersrc=lexer.l parser.y
-OFILES=Makefile Sources.make symbol.ini suzan.ly depend lilyponddefs.tex test.tex make_version
-DFILES=$(hdr) $(mycc) $(othersrc) $(OFILES)
-
-#compiling
-LOADLIBES=-L$(FLOWERDIR) -lflower
-FLOWERDIR=../flower
-CXXFLAGS=-I$(FLOWERDIR) -pipe -Wall -g
-
-exe=$(PACKAGENAME)
-
-
-
-$(exe): $(obs)
- $(CXX) -o $(exe) $(obs) $(LOADLIBES)
-clean:
- rm -f $(exe) *.o $(DOCDIR)/* TAGS
-
-all: kompijl doc
-
-# doc++ documentation of classes
-doc:
- -mkdir $(DOCDIR)
- doc++ -p -I -d $(DOCDIR) $(progdocs)
-
-back:
- zip -u ~/backs/spacer *cc *hh
-
-depend: Sources.make
- $(CXX) $(CXXFLAGS) -MM $(cc) > depend
+# subdir level:
+#
+depth = .
+#
-include depend
+# identify module:
+#
+NAME = lilypond
+SUBDIRS = bin flower lib lily mf mi2mu debian\
+ Documentation init input tex make mutopia
+include VERSION
+#
-parser.cc: parser.y
- bison -d $<
- mv parser.tab.h parser.hh
- mv parser.tab.c parser.cc
+# descent order into subdirectories:
+#
-parser.hh: parser.cc
+# list of distribution files:
+#
+SCRIPTS = configure configure.in aclocal.m4
+README_FILES = BUGS DEDICATION ANNOUNCE-0.1 ANNOUNCE \
+ COPYING ONEWS NEWS README TODO \
+ INSTALL.txt AUTHORS.txt PATCHES.txt
+EXTRA_DISTFILES = config.make.in config.hh.in .dstreamrc mudela-mode.el VERSION $(README_FILES) $(SCRIPTS)
+
+# do not dist ./Makefile (is copied from make/Toplevel.make)
+DISTFILES:=$(EXTRA_DISTFILES)
+#
-version.o: $(obs) version.hh
-version.hh: Makefile make_version
- make_version $(MAJVER) $(MINVER) $(PATCHLEVEL) > version.hh
+# generic targets and rules:
+#
+include ./$(depth)/make/Version.make
+include ./$(depth)/make/Variables.make
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
-lexer.cc: lexer.l
- flex -+ -t lexer.l > lexer.cc
+localdist: configure
-DDIR=$(DNAME)
-dist:
- -mkdir $(DDIR)
- ln $(DFILES) $(DDIR)/
- tar cfz $(DNAME).tar.gz $(DDIR)/*
- rm -rf $(DDIR)/
+local-distclean:
+ rm -f config.hh config.make Makefile config.cache config.status config.log
+Makefile: make/Toplevel.make.in
+ chmod +w $@
+ echo '# WARNING WARNING WARNING WARNING' > $@
+ echo '# do not edit! this is generated from make/Toplevel.make.in' >> $@
+ cat $< >> $@
+ chmod -w $@
-TAGS: $(mycc) $(hdr) Sources.make
- etags -CT $(mycc) $(hdr)