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