]> git.donarmstrong.com Git - lilypond.git/blobdiff - Makefile
release: 0.0.42.pre3
[lilypond.git] / Makefile
index 4f747e6c954ac1d85b406f10360717a73e26aa45..7ac03e335c42fc237ff8e70b40f7a20f9db90777 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,97 +1,63 @@
-MAJVER=0
-MINVER=0
-PATCHLEVEL=7
-
-# 
 #
+# 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
 
-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
-SCRIPTS=make_version make_patch genheader
-IFILES=dimen.tex symbol.ini suzan.ly maartje.ly\
-       lilyponddefs.tex test.tex .dstreamrc
-OFILES=Makefile Sources.make 
-DOC=COPYING README TODO CodingStyle
-DFILES=$(hdr) $(mycc) $(othersrc) $(OFILES) $(IFILES) $(SCRIPTS) $(DOC)
-
-#compiling
-LOADLIBES=-L$(FLOWERDIR) -lflower
-FLOWERDIR=../flower
-# speedy
-#DEFINES=-DNDEBUG -DNPRINT -O2
-# lots of debugging info
-DEFINES=-g
-
-CXXFLAGS=$(DEFINES) -I$(FLOWERDIR) -pipe -Wall -W  -pedantic 
-FLEX=flex
-BISON=bison
-exe=$(PACKAGENAME)
-
-##################################################################
-
-$(exe): $(obs)
-       $(CXX) -o $@ $(obs) $(LOADLIBES)
-clean:
-       rm -f $(exe) *.o $(DOCDIR)/* core  
-
-distclean: clean
-       rm -f TAGS depend version.hh $(gencc) .GENERATE *~
-
-all: kompijl doc
-
-# doc++ documentation of classes
-doc:
-       -mkdir $(DOCDIR)
-       doc++ -p -I -d $(DOCDIR) $(progdocs)
-
-depend: Sources.make  .GENERATE
-       $(CXX) $(CXXFLAGS) -MM $(cc) > $@
-
-# hack to create these sources once, before the dependencies
-.GENERATE:
-       touch .GENERATE depend
-       $(MAKE) version.hh
-       $(MAKE) $(gencc)
-       rm -f depend
+# subdir level:
+#
+depth = .
+#
 
-include depend
+# identify module:
+#
+NAME = lilypond
+include .version
+include ./$(depth)/make/Version.make
 
-parser.cc: parser.y
-       $(BISON) -d $<
-       mv parser.tab.h parser.hh
-       mv parser.tab.c parser.cc
+# generic variables:
+#
+include ./$(depth)/make/Variables.make 
+#
 
-parser.hh: parser.cc
+# descent order into subdirectories:
+#
+SUBDIRS = flower lib lily mi2mu \
+       Documentation bin init input tex make
+#
 
-version.o: $(obs) version.hh
+# 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)
+#
 
-version.hh: Makefile make_version
-       make_version $(MAJVER) $(MINVER) $(PATCHLEVEL)  > $@
 
-lexer.cc: lexer.l
-       $(FLEX) -+ -t $< > $@
+# generic targets and rules:
+#
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
+#
 
-DDIR=$(DNAME)
-dist:
-       -mkdir $(DDIR)
-       ln $(DFILES) $(DDIR)/
-       tar cfz $(DNAME).tar.gz $(DDIR)/
-       rm -rf $(DDIR)/
+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` .
 
-TAGS: $(mycc) $(hdr) Sources.make
-       etags -CT $(mycc) $(hdr) 
+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