depth = ..
-NAME = lilypond
+NAME = lilypond-bin
SUBDIRS = include
MODULE_LIBS=$(depth)/flower
MODULE_CXXFLAGS=
-HELP2MAN_EXECS = lilypond
+HELP2MAN_EXECS = lilypond-bin
STEPMAKE_TEMPLATES= c++ executable po help2man
include $(depth)/make/stepmake.make
# USER_LDFLAGS += -static -lltdl -ldl
#
-ETAGS_FLAGS += -r '/^LY_DEFINE *(\([^,]+\),/\1/' -r '/^LY_DEFINE *([^,]+, *"\([^"]+\)"/\1/'
+ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *(\([^,]+\)/\1/'
+ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *([^"]*"\([^"]+\)"/\1/'
-default:
+default:
# force these: Make can't know these have to be generated in advance
$(outdir)/my-lily-parser.o: $(outdir)/parser.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