work around apparent failure of pkg-config in upstream source re com_err
[debian/dump] / debian / rules
1 #!/usr/bin/make -f
2
3 configure: configure-stamp
4 configure-stamp:
5         dh_testdir
6         cp -f /usr/share/misc/config.sub config.sub
7         cp -f /usr/share/misc/config.guess config.guess
8         EXT2FS_LIBS="-lext2fs -lcom_err" ./configure \
9                 --prefix=/usr \
10                 --with-ccopts="-O2 -g -Wall" \
11                 --with-dumpdatespath=/var/lib/dumpdates \
12                 --enable-largefile \
13                 --enable-qfa \
14                 --enable-staticz
15         touch configure-stamp
16
17 build: configure-stamp build-stamp
18 build-stamp:
19         dh_testdir
20         make
21         touch build-stamp
22
23 clean:
24         dh_testdir
25         dh_testroot
26         rm -f build-stamp
27         [ ! -f Makefile ] || make distclean
28         dh_clean
29
30 binary-indep: build
31
32 binary-arch: build
33         dh_testdir
34         dh_testroot
35         dh_clean -k
36         dh_installdirs
37         make install \
38                 SBINDIR=`pwd`/debian/dump/sbin \
39                 MANDIR=`pwd`/debian/dump/usr/share/man/man8
40
41         mv debian/dump/usr/share/man/man8/rmt.8 \
42                 debian/dump/usr/share/man/man8/rmt-dump.8
43         mv debian/dump/sbin/rmt debian/dump/usr/sbin/rmt-dump
44
45         (cd debian/dump/sbin ; rm -f rdump rrestore ; \
46                 ln -s dump rdump ; ln -s restore rrestore )
47         (cd debian/dump/usr/share/man/man8 ; rm -f rdump* rrestore* ; \
48                 ln -s dump.8.gz rdump.8.gz ; ln -s restore.8.gz rrestore.8.gz )
49         dh_installdocs KNOWNBUGS MAINTAINERS README THANKS TODO
50         dh_installexamples examples/*
51         dh_installchangelogs CHANGES
52         dh_lintian
53         dh_strip
54         dh_compress
55         dh_fixperms
56         dh_installdeb
57         dh_shlibdeps
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62 source diff:                                                                  
63         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
64
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary