paul@0 | 1 | #!/usr/bin/make -f |
paul@0 | 2 | |
paul@0 | 3 | # Uncomment this to turn on verbose mode. |
paul@0 | 4 | #export DH_VERBOSE=1 |
paul@0 | 5 | |
paul@0 | 6 | PYVERS=$(shell pyversions -vr) |
paul@0 | 7 | |
paul@0 | 8 | build: build-stamp |
paul@0 | 9 | |
paul@1 | 10 | build-stamp: $(PYVERS:%=build-python%) build-python-scripts build-manpages |
paul@0 | 11 | touch $@ |
paul@0 | 12 | |
paul@0 | 13 | build-python%: |
paul@0 | 14 | python$* setup.py build_py |
paul@0 | 15 | touch $@ |
paul@0 | 16 | |
paul@0 | 17 | build-python-scripts: |
paul@0 | 18 | python setup.py build_scripts |
paul@0 | 19 | touch $@ |
paul@0 | 20 | |
paul@1 | 21 | build-manpages: |
paul@1 | 22 | python scripts/rst2man.py doc/shedskin.rst debian/shedskin.1 |
paul@1 | 23 | |
paul@0 | 24 | clean: |
paul@0 | 25 | dh_testdir |
paul@0 | 26 | dh_testroot |
paul@0 | 27 | rm -f *-stamp |
paul@19 | 28 | rm -rf build* |
paul@29 | 29 | rm -f debian/shedskin.1 |
paul@0 | 30 | find . -name '*.py[co]' | xargs rm -f |
paul@0 | 31 | dh_clean |
paul@0 | 32 | |
paul@0 | 33 | install: build install-prereq $(PYVERS:%=install-python%) install-python-scripts |
paul@0 | 34 | # Script fixing would appear here. |
paul@0 | 35 | |
paul@0 | 36 | install-prereq: |
paul@0 | 37 | dh_testdir |
paul@0 | 38 | dh_testroot |
paul@0 | 39 | dh_clean -k |
paul@0 | 40 | |
paul@0 | 41 | install-python%: |
paul@0 | 42 | python$* setup.py install_lib --install-dir $(CURDIR)/debian/shedskin/usr/lib/python$*/site-packages |
paul@0 | 43 | |
paul@0 | 44 | install-python-scripts: |
paul@0 | 45 | python setup.py install_scripts --install-dir $(CURDIR)/debian/shedskin/usr/bin |
paul@0 | 46 | |
paul@0 | 47 | # Build architecture-independent files here. |
paul@0 | 48 | |
paul@0 | 49 | binary-indep: install |
paul@0 | 50 | dh_testdir -i |
paul@0 | 51 | dh_testroot -i |
paul@2 | 52 | dh_pycentral -i |
paul@21 | 53 | dh_install -i |
paul@0 | 54 | dh_installdocs -i |
paul@0 | 55 | dh_installchangelogs -i |
paul@19 | 56 | dh_installman -i debian/shedskin.1 |
paul@19 | 57 | dh_compress -i |
paul@0 | 58 | dh_fixperms -i |
paul@0 | 59 | dh_installdeb -i |
paul@0 | 60 | dh_gencontrol -i |
paul@0 | 61 | dh_md5sums -i |
paul@0 | 62 | dh_builddeb -i |
paul@0 | 63 | |
paul@0 | 64 | # Build architecture-dependent files here. |
paul@0 | 65 | |
paul@0 | 66 | binary-arch: |
paul@0 | 67 | # Empty rule for this package. |
paul@0 | 68 | |
paul@0 | 69 | binary: binary-indep binary-arch |
paul@0 | 70 | .PHONY: build clean binary-arch binary-indep binary install |