paulb@698 | 1 | #!/usr/bin/make -f |
paulb@698 | 2 | |
paulb@698 | 3 | # Uncomment this to turn on verbose mode. |
paulb@698 | 4 | #export DH_VERBOSE=1 |
paulb@698 | 5 | |
paulb@698 | 6 | export DH_COMPAT=5 |
paulb@698 | 7 | |
paulb@698 | 8 | build: build-stamp |
paulb@698 | 9 | |
paulb@698 | 10 | build-stamp: |
paulb@698 | 11 | touch $@ |
paulb@698 | 12 | |
paulb@698 | 13 | clean: |
paulb@698 | 14 | dh_testdir |
paulb@698 | 15 | dh_testroot |
paulb@698 | 16 | rm -f *-stamp |
paulb@698 | 17 | dh_clean |
paulb@698 | 18 | |
paulb@702 | 19 | install: build install-prereq install-pyservlet |
paulb@698 | 20 | # Script fixing would appear here. |
paulb@698 | 21 | |
paulb@698 | 22 | install-prereq: |
paulb@698 | 23 | dh_testdir |
paulb@698 | 24 | dh_testroot |
paulb@698 | 25 | dh_clean -k |
paulb@698 | 26 | |
paulb@702 | 27 | # The main WebStack libraries should be installed in the python-webstack package. |
paulb@702 | 28 | |
paulb@702 | 29 | install-pyservlet: |
paulb@702 | 30 | # NOTE: To be enabled in the future, perhaps. |
paulb@702 | 31 | #install -d $(CURDIR)/debian/jython-webstack/usr/share/java |
paulb@702 | 32 | #cp tools/JavaServlet/classes/webstack-pyservlet.jar $(CURDIR)/debian/jython-webstack/usr/share/java/ |
paulb@698 | 33 | |
paulb@698 | 34 | # The WebStack scripts (including Jython/Java-related scripts) should be |
paulb@698 | 35 | # installed in the python-webstack package. |
paulb@698 | 36 | |
paulb@698 | 37 | # Build architecture-independent files here. |
paulb@698 | 38 | |
paulb@698 | 39 | binary-indep: install |
paulb@701 | 40 | JYTHON_LIB=/usr/share/jython/jython.jar SERVLET_LIB=/usr/share/java/servlet-api.jar tools/JavaServlet/compile.sh |
paulb@698 | 41 | dh_testdir -i |
paulb@698 | 42 | dh_testroot -i |
paulb@698 | 43 | #dh_pycentral -i |
paulb@698 | 44 | dh_installdocs -i |
paulb@698 | 45 | dh_fixperms -i |
paulb@698 | 46 | dh_installdeb -i |
paulb@698 | 47 | dh_gencontrol -i |
paulb@698 | 48 | dh_md5sums -i |
paulb@698 | 49 | dh_builddeb -i |
paulb@698 | 50 | |
paulb@698 | 51 | # Build architecture-dependent files here. |
paulb@698 | 52 | |
paulb@698 | 53 | binary-arch: |
paulb@698 | 54 | # Empty rule for this package. |
paulb@698 | 55 | |
paulb@698 | 56 | binary: binary-indep binary-arch |
paulb@698 | 57 | .PHONY: build clean binary-arch binary-indep binary install |