summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bindings/python/Makefile.am13
1 files changed, 3 insertions, 10 deletions
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index 381df7e..e484ab1 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -33,16 +33,9 @@ _gpod.so: gpod_wrap.o
install-pythonDATA: $(python_DATA)
$(mkinstalldirs) $(DESTDIR)$(pythondir)/gpod
$(INSTALL_PROGRAM) _gpod.so $(DESTDIR)$(pythondir)/gpod/_gpod.so
- $(INSTALL_DATA) __init__.py $(DESTDIR)$(pythondir)/gpod/__init__.py
- $(INSTALL_DATA) gpod.py $(DESTDIR)$(pythondir)/gpod/gpod.py
- $(INSTALL_DATA) gtkpod.py $(DESTDIR)$(pythondir)/gpod/gtkpod.py
- $(INSTALL_DATA) ipod.py $(DESTDIR)$(pythondir)/gpod/ipod.py
- $(PYTHON) -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/gpod.py")'
- $(PYTHON) -O -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/gpod.py")'
- $(PYTHON) -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/gtkpod.py")'
- $(PYTHON) -O -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/gtkpod.py")'
- $(PYTHON) -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/ipod.py")'
- $(PYTHON) -O -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/ipod.py")'
+ $(INSTALL_DATA) *.py $(DESTDIR)$(pythondir)/gpod/
+ $(PYTHON) -c 'from compileall import compile_dir; compile_dir("$(DESTDIR)$(pythondir)/gpod/")'
+ $(PYTHON) -O -c 'from compileall import compile_dir; compile_dir("$(DESTDIR)$(pythondir)/gpod/")'
uninstall-pythonDATA: $(python_DATA)
rm -rf $(DESTDIR)$(pythondir)/gpod