-include Variables.make
-
-.SUFFIXES:
-.SUFFIXES: .cc .o .hh .y .l .pod .txt .1 .dep
-
-
-$(exe): $(obs)
- $(CXX) -o $@ $^ $(LOADLIBES)
-
-clean:
- rm -f $(exe) $(DOCDIR)/* core $(obs)
- for SUBDIR in $(SUBDIRS); \
- do \
- $(MAKE) SUBDIR=$$SUBDIR -C $$SUBDIR clean;\
- done
-
-distclean: clean
- rm -f version.hh $(gencc) .GENERATE *~ $(ALLDEPS)
-
-all: kompijl doc
-
-doc:
- $(MAKE) -C Documentation doc
-
-# doc++ documentation of classes
-docpp: $(progdocs)
- -mkdir $(DOCDIR)
- doc++ -p -I -d $(DOCDIR) $^
-
-$(OBJECTDIR)/%.o: $(CCDIR)/%.cc
- $(DODEP)\
- $(CXX) -c $(CXXFLAGS) $(OUTPUT_OPTION)
-
-
-include $(DEPDIR)/*.dep
-
-$(OBJECTDIR)/version.o: $(obs) $(HEADERDIR)/version.hh
-
-include Generate.make
-
-dist:
- -mkdir $(DDIR)
- ln $(DFILES) $(DDIR)/
- for SUBDIR in $(SUBDIRS); \
- do mkdir $(DDIR)/$$SUBDIR; \
- $(MAKE) SUBDIR=$$SUBDIR -C $$SUBDIR dist;\
- done
- tar cfz $(DNAME).tar.gz $(DNAME)/
- rm -rf $(DDIR)/
-
-TAGS:
- $(MAKE) -C $(HEADERDIR) TAGS
- $(MAKE) -C $(CCDIR) TAGS
+#
+# 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:
+#
+depth = .
+#
+
+# identify module:
+#
+NAME = lilypond
+include .version
+include ./$(depth)/make/Version.make
+
+# generic variables:
+#
+include ./$(depth)/make/Variables.make
+#
+
+# descent order into subdirectories:
+#
+SUBDIRS = flower lib lily mi2mu \
+ Documentation bin init input tex make
+#
+
+# list of distribution files:
+#
+# SYMLINKS = # naah, configure
+SCRIPTS = configure configure.in install-sh
+README_FILES = ANNOUNCE COPYING NEWS README TODO INSTALL.text
+EXTRA_DISTFILES= .dstreamrc .version $(README_FILES) $(SCRIPTS) $(SYMLINKS)
+#
+
+
+# generic targets and rules:
+#
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
+#
+
+localdist: configure
+
+# ugh. I know dep is not quite what is really needed.
+INSTALL.text: check-doc-deps
+ rm -f INSTALL.text
+ ln `find -name INSTALL.text|head -1` .
+
+localclean:
+ rm -f $(allexe) core config.cache config.log config.status
+
+localinstall: all
+ $(INSTALL) -d $(bindir)
+ $(INSTALL) -m 755 $(allexe) $(bindir)
+
+localuninstall:
+ for i in $(allexe); do rm -f $(bindir)/`basename $$i`; done
\ No newline at end of file