$(outdir)/%$(SHARED_MODULE_SUFFIX): $(outdir)/%.lo
- $(LD) $(SHARED_FLAGS) -o $@ $< $(ALL_LDFLAGS)
+ $(LD) -o $@ $< $(SHARED_FLAGS) $(ALL_LDFLAGS)
$(outdir)/%.pyc: $(outdir)/%.py
- $(PYTHON) -c 'import py_compile; py_compile.compile ("$<")'
+ PYTHONOPTIMIZE= $(PYTHON) -c 'import py_compile; py_compile.compile ("$<")'
-$(outdir)/%.py: %.py $(builddir)/config.make
- cat $< | sed $(sed-atvariables) > $@
+$(outdir)/%.pyo: $(outdir)/%.py
+ $(PYTHON) -O -c 'import py_compile; py_compile.compile ("$<")'
+
+$(outdir)/%.py: %.py $(config_make) $(depth)/VERSION
+ cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
chmod 755 $@
+