~ubuntu-branches/ubuntu/utopic/binkd/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2002-03-24 22:52:25 UTC
  • Revision ID: james.westby@ubuntu.com-20020324225225-emwdv21tqzdb21le
Tags: 0.9.5a-4
Fixed ftrans (Closes: #139055).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Original version Copyright by Ian Jackson.
 
3
 
 
4
SHELL+= -e
 
5
 
 
6
#export DH_VERBOSE=1
 
7
 
 
8
build:
 
9
        $(checkdir)
 
10
        cp mkfls/unix/install-sh mkfls/unix/configure mkfls/unix/Makefile.in .
 
11
        chmod u+x configure
 
12
        ./configure
 
13
        $(MAKE)
 
14
        touch build
 
15
 
 
16
clean:
 
17
        $(checkdir)
 
18
        -$(MAKE) clean
 
19
        -rm -f install-sh configure Makefile.in \
 
20
                Makefile Makefile.dep configure.in config.log binkd build
 
21
        -cd debian && rm -rf tmp files* substvars *debhelper
 
22
 
 
23
binary-arch:    checkroot build
 
24
        $(checkdir)
 
25
        -rm -rf debian/tmp
 
26
 
 
27
        dh_installdirs
 
28
        dh_installdocs manual todo.lst
 
29
        dh_installchangelogs \!README.FIX
 
30
        dh_installmanpages
 
31
 
 
32
        cp binkd.cfg binkd.inc debian/tmp/etc/binkd/
 
33
        dh_installinit
 
34
        dh_installlogrotate
 
35
        install binkd debian/tmp/usr/sbin/
 
36
        install --mode 755 debian/binkdlogstat debian/tmp/usr/sbin/
 
37
 
 
38
        dh_strip
 
39
        dh_compress
 
40
        dh_fixperms
 
41
        dh_installdeb
 
42
        dh_shlibdeps
 
43
        dh_gencontrol
 
44
        dh_builddeb
 
45
 
 
46
define checkdir
 
47
        test -f debian/rules
 
48
endef
 
49
 
 
50
binary: binary-arch
 
51
 
 
52
checkroot:
 
53
        test root = "`whoami`"
 
54
 
 
55
.PHONY: binary binary-arch binary-indep clean checkroot