From: Reinhold Kainhofer Date: Fri, 14 Nov 2008 23:12:07 +0000 (+0100) Subject: MusicXML: Compressed MusicXML files should be compiled, too... X-Git-Tag: release/2.11.64-1~26 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c300e17a4b77dd8e74e54d30f39f90f4edf5b59e;p=lilypond.git MusicXML: Compressed MusicXML files should be compiled, too... --- diff --git a/make/musicxml-rules.make b/make/musicxml-rules.make index c00d2da87a..d0c4651197 100644 --- a/make/musicxml-rules.make +++ b/make/musicxml-rules.make @@ -1,5 +1,8 @@ -.SUFFIXES: .xml +.SUFFIXES: .xml .mxl $(outdir)/%.ly: %.xml $(PYTHON) $(MUSICXML2LY) -o $@ $< + +$(outdir)/%.ly: %.mxl + $(PYTHON) $(MUSICXML2LY) -z -o $@ $< diff --git a/make/musicxml-vars.make b/make/musicxml-vars.make index 0844fa730e..a5ddb1bc3b 100644 --- a/make/musicxml-vars.make +++ b/make/musicxml-vars.make @@ -1,10 +1,8 @@ # rules for directories with MusicXML files. MUSICXML_FILES := $(call src-wildcard,*.xml) -# LY_FILES=$(addprefix $(outdir)/, $(addsuffix .ly, $(MUSICXML_FILE))) -# LY_FILES = $(MUSICXML_FILES:%.xml=$(outdir)/%.ly) -OUT_LY_FILES = $(MUSICXML_FILES:%.xml=$(outdir)/%.ly) - +MUSICMXL_FILES := $(call src-wildcard,*.mxl) # Allow .mxl for compressed files +OUT_LY_FILES = $(sort ${MUSICXML_FILES:%.xml=$(outdir)/%.ly} ${MUSICMXL_FILES:%.mxl=$(outdir)/%.ly}) OUT_FILES = $(OUT_LY_FILES) -EXTRA_DIST_FILES += $(MUSICXML_FILES) +EXTRA_DIST_FILES += $(MUSICXML_FILES) $(MUSICMXL_FILES)