X-Git-Url: https://git.distorted.org.uk/~mdw/rocl/blobdiff_plain/6374a2675eb815c8ccfeea6730382c63fbac744e..8d722cca1e280296d78a1eba829795b0a34e1915:/debian/rules diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8c1bc68 --- /dev/null +++ b/debian/rules @@ -0,0 +1,44 @@ +#! /usr/bin/make -f + +export DH_COMPAT = 4 + +build: + rm -f build + make INCLUDES=-I/usr/include/tcl8.3 prefix=/usr + touch build + +clean: + dh_clean + make clean + rm -f build + +install: build + dh_clean + make install prefix=/usr INST=`pwd`/debian/rocl + +binary-arch: install + dh_testdir -a + dh_testroot -a + dh_installdocs -a README + dh_compress -a + dh_strip -a + dh_shlibdeps -a + dh_gencontrol -a + dh_fixperms -a + dh_installdeb -a + dh_md5sums -a + dh_builddeb -a + +binary-indep: + +binary: binary-indep binary-arch + +source: + rm -rf =inst= + mkdir -p =inst=/=deb= + make dist INST==inst=/ + cd =inst=/=deb=; tar xvfz ../*.tar.gz + d=`pwd`; cd ..; dpkg-source -i -b $$d/=inst=/=deb=/* + rm -rf =inst= + +.PHONY: binary binary-arch binary-indep clean install source