Skip to content
Browse files

Install .py files along with .pyc

(cherry picked from commit 5e73af6)
  • Loading branch information...
1 parent 244052f commit dd3a2b38973ac0ee571d707a453369f76b1dc7e3 Alexey Sokolov committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 modules/modpython/Makefile.inc
View
7 modules/modpython/Makefile.inc
@@ -59,10 +59,15 @@ modpython/compiler: modpython/compiler.cpp Makefile
$(Q)$(CXX) $(PYTHONCOMMON) -o $@ $< $(PY_LDFLAGS)
modpython_install: install_datadir modpython_all
- -for i in *.pyc; do \
+ -for i in *.pyc $(srcdir)/*.py; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(MODDIR); \
done
mkdir -p $(DESTDIR)$(MODDIR)/modpython
$(INSTALL_PROGRAM) modpython/_znc_core.so $(DESTDIR)$(MODDIR)/modpython
$(INSTALL_DATA) modpython/znc_core.pyc $(DESTDIR)$(MODDIR)/modpython
+ if test -r modpython/znc_core.py;\
+ then $(INSTALL_DATA) modpython/znc_core.py $(DESTDIR)$(MODDIR)/modpython;\
+ else $(INSTALL_DATA) $(srcdir)/modpython/znc_core.py $(DESTDIR)$(MODDIR)/modpython;\
+ fi
$(INSTALL_DATA) modpython/znc.pyc $(DESTDIR)$(MODDIR)/modpython
+ $(INSTALL_DATA) $(srcdir)/modpython/znc.py $(DESTDIR)$(MODDIR)/modpython

0 comments on commit dd3a2b3

Please sign in to comment.
Something went wrong with that request. Please try again.