1 #! /usr/bin/make -f 2 3 SHELL = /bin/bash 4 5 PYVERS := $(shell /usr/bin/python -c 'import sys; print sys.version[:3]') 6 VER := $(shell /usr/bin/python -c 'import sys; print sys.version[:3]') 7 BIULD_DIR := WebKitBuild/Debug.master 8 build: build-stamp 9 build-stamp: $(PYVERS:%=build-python%) 10 touch $@ 11 build-python%: 12 touch $@ 13 14 clean: 15 rm -rf *-stamp build-python* build 16 rm -rf $(addprefix debian/,$(packages)) debian/files debian/substvars 17 rm -rf _trial_temp test.log 18 find . -name "*.pyc" |xargs -r rm 19 dh_clean 20 21 install: build-stamp install-prereq $(PYVERS:%=install-python%) install-libs install-nover 22 23 install-prereq: build-stamp 24 dh_testdir 25 dh_testroot 26 dh_clean -k 27 28 install-python%: install-prereq 29 dh_install -ppython-webkitwx \ 30 $(BUILD_DIR)/webview.py \ 31 $(BUILD_DIR)/Debug.master/_webview.so \ 32 usr/lib/python$*/site-packages/wx-2.8-gtk2-unicode/wx/ 33 34 install-nover: install-prereq 35 dh_install -pwebkitwx-headers \ 36 $(BUILD_DIR)/JavaScriptCore \ 37 usr/include/wxwebkit-1.0/ 38 39 install-libs: install-prereq 40 dh_install 41 42 43 binary-indep: 44 (cd Tools/Scripts && ./build-webkit --wx --makeargs="--wxpython") 45 dh_testdir 46 dh_testroot 47 dh_installchangelogs -i 48 dh_installdocs -i 49 dh_strip -i 50 dh_compress -i 51 dh_fixperms -i 52 dh_installdeb -i 53 dh_gencontrol -i 54 dh_md5sums -i 55 dh_builddeb -i 56 57 binary-arch: 58 dh_testdir 59 dh_testroot 60 echo $(shell pwd) 61 echo $(shell ls -l) 62 dh_installchangelogs -a 63 dh_installdocs -a WebKit/wx/bindings/python/samples/simple.py 64 dh_strip -a 65 dh_compress -a -Xsimple.py 66 dh_fixperms -a 67 dh_pycentral -a 68 dh_installdeb -a 69 dh_shlibdeps -a 70 dh_gencontrol -a 71 dh_md5sums -a 72 dh_builddeb -a 73 74 binary: binary-indep binary-arch 75 .PHONY: build clean binary-indep binary-arch binary install install-nover install-prereq install-libs 76