chiark / gitweb /
Debianization.
[quine] / debian / rules
CommitLineData
ab284d11 1#! /usr/bin/make -f
2
3export DH_COMPAT = 4
4
5build:
6 rm -rf build deb-build
7 mkdir deb-build
8 cd deb-build; ../configure --prefix=/usr
9 make -C deb-build
10 touch build
11
12clean:
13 dh_clean
14 rm -rf deb-build build
15
16install: build
17 dh_clean
18 make -C deb-build install DESTDIR=`pwd`/debian/quine
19 install -d -m 755 debian/quine/usr/share/doc/examples
20 install -m 755 bournequine debian/quine/usr/share/doc/examples
21 install -m 644 ansicquine.c rexxquine.exec \
22 debian/quine/usr/share/doc/examples
23
24binary-indep:
25
26binary-arch: install
27 dh_testdir -a
28 dh_testroot -a
29 dh_compress -a
30 dh_installdocs -a README
31 dh_strip -a
32 dh_shlibdeps -a
33 dh_gencontrol -a
34 dh_fixperms -a
35 dh_installdeb -a
36 dh_md5sums -a
37 dh_builddeb -a
38
39binary: binary-indep binary-arch
40
41source:
42 rm -rf deb-build/*.tar.gz deb-build/=deb=
43 make -C deb-build dist
44 mkdir deb-build/=deb=
45 cd deb-build/=deb=; tar xvfz ../*.tar.gz
46 d=`pwd`; cd ..; dpkg-source -i -i'/\.svn/' -b $$d/deb-build/=deb=/*
47 rm -rf deb-build/=deb=
48
49.PHONY: binary binary-arch binary-indep clean install source