]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/python-module-rules.make
Add \concat markup command.
[lilypond.git] / stepmake / stepmake / python-module-rules.make
index 35a25ec97c49527b69ffb020241f9568fefb964c..511bd87afd9e171118b73764c8ffc0c23228b090 100644 (file)
@@ -1,3 +1,13 @@
 
 $(outdir)/%$(SHARED_MODULE_SUFFIX): $(outdir)/%.lo
-       $(LD) $(SHARED_FLAGS) -o $@ $< $(ALL_LDFLAGS)
+       $(LD) -o $@ $< $(SHARED_FLAGS) $(ALL_LDFLAGS)
+
+$(outdir)/%.pyc: $(outdir)/%.py
+       PYTHONOPTIMIZE= $(PYTHON) -c 'import py_compile; py_compile.compile ("$<")'
+
+$(outdir)/%.pyo: $(outdir)/%.py
+       $(PYTHON) -O -c 'import py_compile; py_compile.compile ("$<")'
+
+$(outdir)/%.py: %.py $(config_make)
+       cat $< | sed $(sed-atvariables) > $@
+       chmod 755 $@