From: fred Date: Sun, 24 Mar 2002 20:09:19 +0000 (+0000) Subject: lilypond-0.1.54 X-Git-Tag: release/1.5.59~3232 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4a311b12fb207d7626eab4a07c5af0402fc7cbf0;p=lilypond.git lilypond-0.1.54 --- 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)