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