2006-03-01 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * stepmake/stepmake/generic-vars.make: new function absdir.
+
* scripts/convert-ly.py (bindir): use optparse, argv[0] relocation.
* scripts/lilypond-book.py (find_file): use global_options for
script-dir = $(src-depth)/scripts
input-dir = $(src-depth)/input
-
flower-dir = $(src-depth)/flower
lily-dir = $(src-depth)/lily
mi2mu-dir = $(src-depth)/mi2mu
# hmm. notdir builds src-dir builds?
$(outdir)/%.png $(outdir)/%.pdf $(outdir)/%.ly $(outdir)/%.ps: $(outdir)/%.ly
- cd $(outdir); $(LILYPOND_BINARY) --pdf --png -danti-alias-factor=2 -ddelete-intermediate-files -dno-point-and-click -I $(src-dir)/ $(notdir $<)
+ cd $(outdir); $(LILYPOND_BINARY) --pdf --png -danti-alias-factor=2 -ddelete-intermediate-files -dno-point-and-click -I $(call absdir,$(src-dir))/ $(notdir $<)
touch $(outdir)/$(basename $(notdir $<)).png
$(outdir)/%.ly: %.ly
sys.stderr.write (__main__.program_name + ": " + _ ("error: %s") % s + '\n')
def exit (i):
+ be_verbose = get_global_option('verbose_p', 'verbose')
if be_verbose:
raise _ ('Exiting (%d)...') % i
else:
return status
def cleanup_temp ():
+ be_verbose = get_global_option('verbose_p', 'verbose')
if not __main__.keep_temp_dir_p:
if be_verbose:
progress (_ ("Cleaning %s...") % __main__.temp_dir)
full = os.path.join (i, name)
if os.path.exists (full):
return full
+
ly.error (_ ("file not found: %s") % name + '\n')
ly.exit (1)
return ''
options.format = TEXINFO
options.use_hash = True
options.pseudo_filter = False
-
+
+ options.include_path = map (os.path.abspath, options.include_path)
+
global global_options
global_options = options
return args
build-dir = $(shell cd . && pwd)
tree-dir = $(subst $(top-build-dir),,$(build-dir))
+absdir = $(shell cd $(1) ; pwd)
+
+
ifneq ($(configure-srcdir),.)
srcdir-build = 1
endif