X-Git-Url: https://git.distorted.org.uk/~mdw/quine/blobdiff_plain/7f6303ef3838009d7b8c6e2611c06606c05c93a4..ab284d11a2008e7e4c765eb8f46d7f72af740ff5:/debian/rules diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6bdfcc3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,49 @@ +#! /usr/bin/make -f + +export DH_COMPAT = 4 + +build: + rm -rf build deb-build + mkdir deb-build + cd deb-build; ../configure --prefix=/usr + make -C deb-build + touch build + +clean: + dh_clean + rm -rf deb-build build + +install: build + dh_clean + make -C deb-build install DESTDIR=`pwd`/debian/quine + install -d -m 755 debian/quine/usr/share/doc/examples + install -m 755 bournequine debian/quine/usr/share/doc/examples + install -m 644 ansicquine.c rexxquine.exec \ + debian/quine/usr/share/doc/examples + +binary-indep: + +binary-arch: install + dh_testdir -a + dh_testroot -a + dh_compress -a + dh_installdocs -a README + dh_strip -a + dh_shlibdeps -a + dh_gencontrol -a + dh_fixperms -a + dh_installdeb -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +source: + rm -rf deb-build/*.tar.gz deb-build/=deb= + make -C deb-build dist + mkdir deb-build/=deb= + cd deb-build/=deb=; tar xvfz ../*.tar.gz + d=`pwd`; cd ..; dpkg-source -i -i'/\.svn/' -b $$d/deb-build/=deb=/* + rm -rf deb-build/=deb= + +.PHONY: binary binary-arch binary-indep clean install source