From 4a311b12fb207d7626eab4a07c5af0402fc7cbf0 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:09:19 +0000 Subject: [PATCH] lilypond-0.1.54 --- bin/mf-deps.in | 18 ++++++++++++++++++ mf/Makefile.am.wild | 1 + 2 files changed, 19 insertions(+) diff --git a/bin/mf-deps.in b/bin/mf-deps.in index 3483cfc9e9..b259b59748 100644 --- a/bin/mf-deps.in +++ b/bin/mf-deps.in @@ -1,4 +1,5 @@ #!@PYTHON@ +# -*- python -*- # # mf-deps.py -- dependencies for metafont @@ -17,6 +18,23 @@ """ +import sys +import os + +lilypath ='' +try: + lilypath = os.environ['LILYPOND_SOURCEDIR'] + '/' +except KeyError: + try: + lilypath = os.environ['top_srcdir'] + '/' + except KeyError: + print 'Please set LILYPOND_SOURCEDIR to the toplevel source, eg LILYPOND_SOURCEDIR=/home/foobar/lilypond-1.2.3/' + + sys.exit(1) + +lilypath = lilypath + '/bin/' +sys.path.append(lilypath) + from regex import * ; from regsub import * ; import sys; diff --git a/mf/Makefile.am.wild b/mf/Makefile.am.wild index aa7ff51dff..f2b25ae4f4 100644 --- a/mf/Makefile.am.wild +++ b/mf/Makefile.am.wild @@ -22,6 +22,7 @@ texout = $(top_builddir)/tex LYTABLES = $(addprefix $(lyout)/, $(FET_FILES:.mf=.ly)) TEXTABLES = $(addprefix $(texout)/, $(FET_FILES:.mf=.tex)) +export top_srcdir all-local: $(LYTABLES) $(TEXTABLES) -- 2.39.5