From c300e17a4b77dd8e74e54d30f39f90f4edf5b59e Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Sat, 15 Nov 2008 00:12:07 +0100
Subject: [PATCH] MusicXML: Compressed MusicXML files should be compiled,
 too...

---
 make/musicxml-rules.make | 5 ++++-
 make/musicxml-vars.make  | 8 +++-----
 2 files changed, 7 insertions(+), 6 deletions(-)

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)
-- 
2.39.5