]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/GNUmakefile
* lily/vaticana-ligature-engraver.cc: bugfix: another few
[lilypond.git] / lily / GNUmakefile
index 52014326e820f9e676f8a822086596e173fd357f..24c14b1ec85211f5252e37fb0bc37782044578fe 100644 (file)
@@ -1,27 +1,41 @@
-# title           makefile for lilypond
-# file    lily/Makefile 
 
 depth = ..
 
 NAME = lilypond
 SUBDIRS = include
 
-EXTRA_DIST_FILES = VERSION 
-MODULE_LIBS=$(depth)/lib $(depth)/flower
+MODULE_LIBS=$(depth)/flower 
+MODULE_INCLUDES= $(depth)/flower/include
+MODULE_CXXFLAGS= 
 
-STEPMAKE_TEMPLATES= c++ executable 
+
+HELP2MAN_EXECS = lilypond
+STEPMAKE_TEMPLATES= c++ executable po help2man
 
 include $(depth)/make/stepmake.make 
 
-# force these: Make can't know these have to be generated in advance
-$(outdir)/my-lily-parser.o: $(outdir)/parser.hh
-$(outdir)/my-lily-lexer.o: $(outdir)/parser.hh
-$(outdir)/lexer.o: $(outdir)/parser.hh
-$(outdir)/lily-version.o: $(outdir)/version.hh
-$(outdir)/main.o: $(outdir)/BLURB.hh $(outdir)/COPERTINA.hh $(outdir)/FLAPTEKST.hh
+# for profiling, link guile statically:
+#
+# USER_LDFLAGS += -static -lltdl -ldl
+#
+
+ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *(\([^,]+\)/\1/'
+ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *([^"]*"\([^"]+\)"/\1/'
 
+default:
 
-# ugh . -> $(outdir)
-VERSION: $(depth)/VERSION
-       cp $< $@
+# force these: Make can't know these have to be generated in advance
+$(outdir)/lily-parser.o: $(outdir)/parser.hh
+$(outdir)/lily-lexer.o: $(outdir)/parser.hh
+$(outdir)/lexer.o: $(outdir)/parser.hh $(outdir)/version.hh
+
+$(outdir)/general-scheme.o: $(outdir)/version.hh
+$(outdir)/kpath.o: $(outdir)/version.hh
+$(outdir)/lily-guile.o: $(outdir)/version.hh
+$(outdir)/lily-version.o: $(outdir)/version.hh
 
+# ugh.  For --srcdir builds, these must exist to satisfy their broken
+# lexer.dep and parser.dep file entries.
+ifneq ($(srcdir), .)
+.PRECIOUS: $(outdir)/lexer.cc $(outdir)/parser.cc
+endif