You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/python/Makefile.am

158 lines
4.5 KiB

#
# Simon Edwards <simon@simonzone.com>
#
site_packages = @PYTHONMODDIR@/site-packages
sip_dir = @datadir@/sip/
qt_includes = @qt_includes@
qt_dir = $(dir @qt_includes@)
python_inc_dir = `echo @PYTHONINC@ | sed s/-I//`
# qassistantclient.h
# qlist.h
noinst_DATA = build_pyqt_pykde
EXTRA_DIST = sip pyqt pykde
DISTCLEANFILES = sipdone prepqt prepkde
build_pyqt_pykde: prepkde
@(cd pyqt && $(MAKE))
@(cd pykde && $(MAKE))
sipdone:
-mkdir sip
export builddir=`pwd` ; \
cd $(srcdir)/sip ; \
export QTDIR=${qt_dir} ; \
export PYTHONPATH=$$builddir/sip:$$PYTHONPATH ; \
@PYTHON@ configure.py -b @bindir@ -d ${site_packages} -e ${python_inc_dir} -v ${sip_dir}
@(cd sip ; $(MAKE))
echo "" > sipdone
prepqt: sipdone
@# A quick hack to make sure that the configure.py programs from PyQt/PyKDE both get the correct sip config.
-mkdir pyqt
export builddir=`pwd` ; \
export abssrcdir=`cd $(srcdir) && pwd` ; \
sed "s#sip_bin':.*\$$#sip_bin': '$$builddir/sip/sipgen/sip',#g;s#sip_inc_dir':.*\$$#sip_inc_dir': '$$abssrcdir/sip/siplib',#g" sip/sipconfig.py > pyqt/sipconfig.py
export builddir=`pwd` ; \
export PYTHONPATH=$$builddir/pyqt:$$PYTHONPATH ; \
cd $(srcdir)/pyqt ; \
export QTDIR=${qt_dir} ; \
echo "yes" | @PYTHON@ configure.py -i -b @bindir@ -d ${site_packages} -v ${sip_dir}
echo "" > prepqt
prepkde: prepqt
-mkdir pykde
@# PyKDE's configure needs to pick up the correct pyqtconfig.py
export builddir=`pwd` ; \
export abssrcdir=`cd $(srcdir) && pwd` ; \
sed "s#sip_bin':.*\$$#sip_bin': '$$builddir/sip/sipgen/sip',#g;s#sip_inc_dir':.*\$$#sip_inc_dir': '$$abssrcdir/sip/siplib',#g" sip/sipconfig.py > pykde/sipconfig.py ; \
sed "s#pyqt_sip_dir':.*\$$#pyqt_sip_dir': '$$abssrcdir/pyqt/sip',#g" pyqt/pyqtconfig.py > pykde/pyqtconfig.py
export builddir=`pwd` ; \
export PYTHONPATH=$$builddir/pykde:$$PYTHONPATH ; \
cd $(srcdir)/pykde ; \
export QTDIR=${qt_dir} ; \
@PYTHON@ configure.py -i -k @prefix@ -d ${site_packages} -v ${sip_dir}
echo "" > prepkde
install:
@(cd sip && $(MAKE) install)
@(cd pyqt && $(MAKE) install)
@(cd pykde && $(MAKE) install)
uninstall:
@(cd pykde && $(MAKE) uninstall)
@(cd pyqt && $(MAKE) uninstall)
@(cd sip && $(MAKE) uninstall)
clean:
-(cd sip && $(MAKE) clean)
-(cd pyqt && $(MAKE) clean)
-(cd pykde && $(MAKE) clean)
-rm sipdone
-rm prepqt
-rm prepkde
dist-hook:
-rm -rf `find $(distdir) -name CVS`
-rm -rf `find $(distdir) -name Makefile`
-rm -rf `find $(distdir) -name "*.pyc"`
-rm -rf `find $(distdir) -name "*.o"`
-rm -rf `find $(distdir) -name "*.so"`
-rm -rf $(distdir)/sipdone
-rm -rf $(distdir)/prepqt
-rm -rf $(distdir)/prepkde
-rm -rf $(distdir)/sip/sipgen/sip
-rm -rf $(distdir)/pyqt/cfgtest
-rm -rf $(distdir)/pyqt/mkfeatures
-rm -rf $(distdir)/pyqt/sipconfig.py
-rm -rf $(distdir)/pyqt/pyqtconfig.py
-rm -rf $(distdir)/pyqt/qt
-rm -rf $(distdir)/pyqt/qtcanvas
-rm -rf $(distdir)/pyqt/qtext
-rm -rf $(distdir)/pyqt/qtgl
-rm -rf $(distdir)/pyqt/qtnetwork
-rm -rf $(distdir)/pyqt/qtsql
-rm -rf $(distdir)/pyqt/qttable
-rm -rf $(distdir)/pyqt/qtui
-rm -rf $(distdir)/pyqt/qtxml
-rm -rf $(distdir)/pykde/sipconfig.py
-rm -rf $(distdir)/pykde/pyqtconfig.py
-rm -rf $(distdir)/pykde/pykdeconfig.py
-rm -rf $(distdir)/pykde/dcop
-rm -rf $(distdir)/pykde/kdecore
-rm -rf $(distdir)/pykde/kdefx
-rm -rf $(distdir)/pykde/kdeprint
-rm -rf $(distdir)/pykde/kdesu
-rm -rf $(distdir)/pykde/kdeui
-rm -rf $(distdir)/pykde/kfile
-rm -rf $(distdir)/pykde/khtml
-rm -rf $(distdir)/pykde/kio
-rm -rf $(distdir)/pykde/kmdi
-rm -rf $(distdir)/pykde/kparts
-rm -rf $(distdir)/pykde/kspell
distclean-local:
-(cd sip && $(MAKE) distclean)
-(cd pyqt && $(MAKE) distclean)
-(cd pykde && $(MAKE) distclean)
-rm -rf sip/sipgen/sip
-rm -rf sip/sipconfig.py
-rm -rf pyqt/cfgtest
-rm -rf pyqt/cfgtest.cpp
-rm -rf pyqt/features
-rm -rf pyqt/mkfeatures
-rm -rf pyqt/mkfeatures.cpp
-rm -rf pyqt/sipconfig.py
-rm -rf pyqt/pyqtconfig.py
-rm -rf pyqt/qt
-rm -rf pyqt/qtcanvas
-rm -rf pyqt/qtext
-rm -rf pyqt/qtgl
-rm -rf pyqt/qtnetwork
-rm -rf pyqt/qtsql
-rm -rf pyqt/qttable
-rm -rf pyqt/qtui
-rm -rf pyqt/qtxml
-rm -rf pykde/sipconfig.py
-rm -rf pykde/pyqtconfig.py
-rm -rf pykde/pykdeconfig.py
-rm -rf pykde/dcop
-rm -rf pykde/kdecore
-rm -rf pykde/kdefx
-rm -rf pykde/kdeprint
-rm -rf pykde/kdesu
-rm -rf pykde/kdeui
-rm -rf pykde/kfile
-rm -rf pykde/khtml
-rm -rf pykde/kio
-rm -rf pykde/kmdi
-rm -rf pykde/kparts
-rm -rf pykde/kspell
-rm -rf pykde/sip/kspell/kspellmod.sip
-rm -rf pykde/sip/khtml/khtmlmod.sip
-rm -rf pykde/sip/kdecore/kdecoremod.sip
-rm -rf pykde/sip/kdeui/kdeuimod.sip