Skip to content

Commit

Permalink
Install .py files along with .pyc
Browse files Browse the repository at this point in the history
(cherry picked from commit 5e73af6)
  • Loading branch information
Alexey Sokolov committed Sep 13, 2011
1 parent 244052f commit dd3a2b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/modpython/Makefile.inc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -59,10 +59,15 @@ modpython/compiler: modpython/compiler.cpp Makefile
$(Q)$(CXX) $(PYTHONCOMMON) -o $@ $< $(PY_LDFLAGS) $(Q)$(CXX) $(PYTHONCOMMON) -o $@ $< $(PY_LDFLAGS)


modpython_install: install_datadir modpython_all modpython_install: install_datadir modpython_all
-for i in *.pyc; do \ -for i in *.pyc $(srcdir)/*.py; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(MODDIR); \ $(INSTALL_DATA) $$i $(DESTDIR)$(MODDIR); \
done done
mkdir -p $(DESTDIR)$(MODDIR)/modpython mkdir -p $(DESTDIR)$(MODDIR)/modpython
$(INSTALL_PROGRAM) modpython/_znc_core.so $(DESTDIR)$(MODDIR)/modpython $(INSTALL_PROGRAM) modpython/_znc_core.so $(DESTDIR)$(MODDIR)/modpython
$(INSTALL_DATA) modpython/znc_core.pyc $(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) 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.