~ubuntu-branches/ubuntu/hoary/apt-spy/hoary

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Stafford
  • Date: 2004-12-09 12:45:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041209124508-we5ajs683urbb3jg
Tags: 3.1-13
* Transition to libcurl3 (Closes: #279472)
* fix manpage (Closes: #281897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
export DH_COMPAT=2
5
5
 
 
6
update:
 
7
        rm -f README.mirrors.txt
 
8
        wget ftp://ftp.debian.org/debian/README.mirrors.txt
 
9
 
6
10
configure: configure-stamp
7
11
configure-stamp:
8
 
        dh_testdir
9
 
        ./configure --program-transform-name=s/apt-sources/apt-spy/ --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
10
 
 
 
12
# there's nothing to be done here
11
13
        touch configure-stamp
12
14
 
13
15
build: configure-stamp build-stamp
19
21
clean:
20
22
        dh_testdir
21
23
        dh_testroot
22
 
        rm -f build-stamp configure-stamp config.cache config.status
23
 
# YES, this *is* a horribly ugly hack, but preferable IMO to having to tweak
24
 
# the upstream makefiles so the clean targets do what they are supposed to
25
 
        rm -f apt-sources/apt-sources
26
 
        rm -f apt-sources/*.o
27
 
        -$(MAKE) distclean
 
24
        rm -f build-stamp configure-stamp  
 
25
        $(MAKE) clean
28
26
        dh_clean
29
27
 
30
28
install: build
32
30
        dh_testroot
33
31
        dh_clean -k
34
32
        dh_installdirs
35
 
 
36
 
        $(MAKE) install prefix=$(CURDIR)/debian/apt-spy/usr
 
33
        cp apt-spy $(CURDIR)/debian/apt-spy/usr/bin/
 
34
        cp apt-spy.8 $(CURDIR)/debian/apt-spy/usr/share/man/man8/
 
35
        cp apt-spy.conf.5 $(CURDIR)/debian/apt-spy/usr/share/man/man5/
 
36
        gzip -9 $(CURDIR)/debian/apt-spy/usr/share/man/man8/apt-spy.8
 
37
        gzip -9 $(CURDIR)/debian/apt-spy/usr/share/man/man5/apt-spy.conf.5
 
38
        cp apt-spy.conf $(CURDIR)/debian/apt-spy/etc/
 
39
        cp README.mirrors.txt $(CURDIR)/debian/apt-spy/var/lib/apt-spy/mirrors.txt
 
40
        cp debian/apt-spy.lintian $(CURDIR)/debian/apt-spy/usr/share/lintian/overrides/apt-spy
37
41
 
38
42
binary-arch: build install
39
 
#       dh_testversion 2
40
43
        dh_testdir
41
44
        dh_testroot
42
45
        dh_installdocs
43
46
        dh_installmenu
44
47
        dh_installmanpages
45
 
        dh_installchangelogs ChangeLog
 
48
        dh_installchangelogs 
46
49
        dh_strip
47
50
        dh_compress
48
51
        dh_fixperms
52
55
        dh_md5sums
53
56
        dh_builddeb
54
57
 
55
 
binary: binary-indep binary-arch
 
58
binary: binary-arch
56
59
.PHONY: build clean binary-indep binary-arch binary install configure