]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/python-module-rules.make
Merge branch 'master' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / stepmake / stepmake / python-module-rules.make
1
2 $(outdir)/%$(SHARED_MODULE_SUFFIX): $(outdir)/%.lo
3         $(LD) -o $@ $< $(SHARED_FLAGS) $(ALL_LDFLAGS)
4
5 $(outdir)/%.pyc: $(outdir)/%.py
6         PYTHONOPTIMIZE= $(PYTHON) -c 'import py_compile; py_compile.compile ("$<")'
7
8 $(outdir)/%.pyo: $(outdir)/%.py
9         $(PYTHON) -O -c 'import py_compile; py_compile.compile ("$<")'
10
11 $(outdir)/%.py: %.py $(config_make)
12         cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
13         chmod 755 $@
14