Debianization.
[checkpath] / debian / rules
CommitLineData
8b5dfb5e 1#! /usr/bin/make -f
2
4df1c8bc 3export DH_COMPAT = 4
4
8b5dfb5e 5build:
6 rm -rf build deb-build
7 mkdir deb-build
8 cd deb-build; ../configure --prefix=/usr --mandir=/usr/share/man
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
4df1c8bc 18 make -C deb-build install DESTDIR=`pwd`/debian/checkpath
19 mkdir -p debian/libcheckpath1/usr debian/libcheckpath-dev/usr
20 mv debian/checkpath/usr/lib debian/libcheckpath1/usr/lib
8b5dfb5e 21 mkdir -p debian/libcheckpath-dev/usr/lib
4df1c8bc 22 mv debian/libcheckpath1/usr/lib/*.a debian/libcheckpath-dev/usr/lib
23 mv debian/libcheckpath1/usr/lib/*.so debian/libcheckpath-dev/usr/lib
24 mv debian/libcheckpath1/usr/lib/*.la debian/libcheckpath-dev/usr/lib
8b5dfb5e 25 mkdir -p debian/libcheckpath-dev/usr/share/man
4df1c8bc 26 mv debian/checkpath/usr/share/man/man3 \
8b5dfb5e 27 debian/libcheckpath-dev/usr/share/man
28 mkdir -p debian/libcheckpath-dev/usr/bin
4df1c8bc 29 mv debian/checkpath/usr/bin/checkpath-config \
8b5dfb5e 30 debian/libcheckpath-dev/usr/bin
31
32binary-indep:
33
34binary-arch: install
35 dh_testdir -a
36 dh_testroot -a
37 dh_compress -a
38 dh_installdocs -a
4df1c8bc 39 dh_strip -a
40 dh_makeshlibs -a -V
8b5dfb5e 41 dh_shlibdeps -a
42 dh_gencontrol -a
43 dh_fixperms -a
44 dh_installdeb -a
45 dh_md5sums -a
46 dh_builddeb -a
47
48binary: binary-indep binary-arch
49
50source:
51 rm -rf deb-build/*.tar.gz deb-build/=deb=
52 make -C deb-build dist PACKAGE=checkpath
53 mkdir deb-build/=deb=
54 cd deb-build/=deb=; tar xvfz ../*.tar.gz
98d58582 55 d=`pwd`; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/*
8b5dfb5e 56 rm -rf deb-build/=deb=
57
58.PHONY: binary binary-arch binary-indep clean install source