]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.39
authorfred <fred>
Sun, 24 Mar 2002 19:34:24 +0000 (19:34 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:34:24 +0000 (19:34 +0000)
Makefile
m2m/.version [new file with mode: 0644]
m2m/Makefile [new file with mode: 0644]
make/Include.make [new file with mode: 0644]

index c990a7246c1356fc06293bb228f6c8deaa094539..b8abfd8b66b5abf1b84ecdb79660b05bd80292ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,65 +1,52 @@
-# Makefile
-# top level makefile of LilyPond
+#
+# 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
+
+# edit in .version only!
+MAJOR_VERSION = $(TOPLEVEL_MAJOR_VERSION)
+MINOR_VERSION = $(TOPLEVEL_MINOR_VERSION)
+PATCH_LEVEL = $(TOPLEVEL_PATCH_LEVEL)
+# use to send patches, always empty for released version:
+MY_PATCH_LEVEL = $(TOPLEVEL_MY_PATCH_LEVEL)
+build = ./$(depth)/lily/.build
+#
+
+# generic variables:
+#
+include ./$(depth)/make/Variables.make 
+#
+
+# descent order into subdirectories:
+#
+SUBDIRS = flower lib lily m2m \
+       Documentation bin init input make tex
+#
+
+# list of distribution files:
+#
+SYMLINKS = configure
+README_FILES = ANNOUNCE COPYING INSTALL NEWS README TODO
+DISTFILES= Makefile .version $(README_FILES) $(SYMLINKS)
+#
+
+# generic targets and rules:
+#
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
+#
 
-include Variables.make 
-
-.SUFFIXES:
-.SUFFIXES: .cc .o .hh .y .l .pod .txt .1 .dep
-
-
-$(exe): $(obs)
-       $(STRIPDEBUG) $(STABLEOBS)
-       $(LINKER) -o $@ $^ $(LOADLIBES)
-
-$(m2m):        $(m2mobs)
-       $(LINKER) -o $@ $^ $(LOADLIBES)
-
-.PHONY: clean docxx
-
-clean:
-       rm -f $(allexe) $(DOCDIR)/* core $(allobs) 
-       for SUBDIR in $(SUBDIRS); \
-       do \
-               $(MAKE) SUBDIR=$$SUBDIR -C $$SUBDIR clean;\
-       done
-
-distclean: clean
-       rm -f  version.hh $(gencc) .GENERATE *~ $(ALLDEPS) 
-
-all: $(exe) $(m2m) doc
-
-# value of $(OSTYPE) on windhoos; "make $OSTYPE" if you use bash :-)
-win32: 
-       $(MAKE) -C . CXX=g++ 
-
-doc:
-       $(MAKE) -C Documentation doc
-
-# doc++ documentation of classes
-docxx: $(progdocs)     
-       doc++ -kp -d $(DOCDIR) $^
-
-
-include $(DEPDIR)/*.dep
-
-$(OBJECTDIR)/%.o: $(CCDIR)/%.cc
-       $(DODEP)\
-       $(CXX) -c $(CXXFLAGS) $(OUTPUT_OPTION) 
-
-$(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
diff --git a/m2m/.version b/m2m/.version
new file mode 100644 (file)
index 0000000..d04b0e0
--- /dev/null
@@ -0,0 +1,7 @@
+# not currently used
+MAJOR_VERSION = 0
+MINOR_VERSION = 0
+PATCH_LEVEL = 1
+# use to send patches, always empty for released version:
+MY_PATCH_LEVEL = #
+#
diff --git a/m2m/Makefile b/m2m/Makefile
new file mode 100644 (file)
index 0000000..789bf17
--- /dev/null
@@ -0,0 +1,99 @@
+#
+# project  LilyPond -- the musical typesetter
+# title           makefile for m2m
+# file    m2m/Makefile 
+#
+# Copyright (c) 1997 by
+#      Jan Nieuwenhuizen <jan@digicash.com>
+#      Han-Wen Nienhuys <hanwen@stack.nl>
+#
+
+# subdir level:
+#
+depth = ..
+#
+
+# identify module:
+#
+NAME = m2m
+MODULE_NAME = m2m
+MAJOR_VERSION = $(TOPLEVEL_MAJOR_VERSION)
+MINOR_VERSION = $(TOPLEVEL_MINOR_VERSION)
+PATCH_LEVEL = $(TOPLEVEL_PATCH_LEVEL)
+# use to send patches, always empty for released version:
+MY_PATCH_LEVEL = $(TOPLEVEL_MY_PATCH_LEVEL)
+# include ./$(depth)/m2m/.version
+build = ./$(depth)/lily/.build
+#
+
+# generic variables:
+#
+include ./$(depth)/make/Variables.make 
+#
+
+# descent order into subdirectories:
+#
+SUBDIRS = include
+#
+
+# to be remade each build:
+#
+VERSION_DEPENDENCY = $(lily-version)
+#
+
+# list of c++ header files:
+# 
+HHFILES = # $(shell ls include/*.hh)
+#
+
+# list of c++ source files:
+#
+CCFILES = $(shell ls *.cc)
+#
+
+# list of other source files:
+#
+EXTRA_SOURCE_FILES = $(shell ls *.y *.l)
+#
+
+# list of distribution files:
+#
+DISTFILES = Makefile .version $(HHFILES) $(CCFILES) $(EXTRA_SOURCE_FILES)
+#
+
+# list of custom libraries:
+#
+# yes, i know about the -L and -l options,
+# but these libraries get rebuild when needed.
+CUSTOMLIBES = $(LIBLILY) $(LIBFLOWER) 
+
+LOADLIBES +=
+#
+
+# main target of this module:
+#
+# MAINTARGET = $(EXECUTABLE)
+# MAINTARGET = $(LIBRARY)
+MAINTARGET = $(bindir)/$(EXECUTABLE)# huh?
+# MAINTARGET = $(libdir)/$(LIBRARY)# huh?
+
+default: $(MAINTARGET)
+#
+
+# generic targets and rules:
+#
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
+#
+
+# explicit dependencies: (how to do auto?)
+#
+midi-lexer.l:  $(outdir)/midi-parser.hh
+midi-main.cc:  check-flower-version $(lily-version)
+#
+
+# auto dependencies:
+#
+-include ./$(outdir)/*.dep
+#
+
diff --git a/make/Include.make b/make/Include.make
new file mode 100644 (file)
index 0000000..987b1fa
--- /dev/null
@@ -0,0 +1,51 @@
+#
+# project  LilyPond -- the musical typesetter
+# title           generic red tape for include/Makefile
+# file    make/Include.make
+#
+# Copyright (c) 1997 by    
+#      Jan Nieuwenhuizen <jan@digicash.com>
+#      Han-Wen Nienhuys <hanwen@stack.nl>
+
+# identify module:
+#
+NAME = generic-include
+MAJOR_VERSION = $(TOPLEVEL_MAJOR_VERSION)
+MINOR_VERSION = $(TOPLEVEL_MINOR_VERSION)
+PATCH_LEVEL = $(TOPLEVEL_PATCH_LEVEL)
+# use to send patches, always empty for released version:
+MY_PATCH_LEVEL = $(TOPLEVEL_MY_PATCH_LEVEL)
+build = ./$(depth)/lily/.build
+#
+
+# generic variables:
+#
+include ./$(depth)/make/Variables.make 
+#
+
+# list of c++ header files:
+# 
+HHFILES = $(shell ls *.hh)
+#
+
+# list of c++ inline files:
+# 
+INLFILES = $(shell ls *.inl)
+#
+
+# list of c++ template files:
+# 
+TCCFILES = $(shell ls *.tcc)
+#
+
+# list of distribution files:
+#
+DISTFILES = Makefile $(HHFILES) $(INLFILES) $(TCCFILES)
+#
+
+# generic targets and rules:
+#
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
+#
+