~ubuntu-branches/ubuntu/trusty/atool/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2012-05-28 14:47:47 UTC
  • Revision ID: package-import@ubuntu.com-20120528144747-d208d26khm3m1bx7
Tags: 0.39.0-2
Switch to a minimal debian/rules file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
4
 
# GNU copyright 1997 to 1999 by Joey Hess.
5
 
 
6
 
# Uncomment this to turn on verbose mode.
7
 
#export DH_VERBOSE=1
8
 
 
9
 
clean:
10
 
        dh_testdir
11
 
        dh_testroot
12
 
        rm -f atool.1
13
 
        dh_clean 
14
 
 
15
 
build-arch:
16
 
build-indep:
17
 
build: build-stamp
18
 
 
19
 
build-stamp: config.status
20
 
        dh_testdir
21
 
        $(MAKE)
22
 
        touch $@
23
 
 
24
 
config.status:
25
 
        dh_testdir
26
 
        ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc
27
 
 
28
 
install: build
29
 
        dh_testdir
30
 
        dh_testroot
31
 
        dh_prep
32
 
        dh_installdirs
 
3
 
 
4
%:
 
5
        dh $@
 
6
 
 
7
override_dh_auto_build:
 
8
        dh_auto_build
33
9
        perl debian/replace_autoconf_vars atool.1.in atool.1
 
10
 
 
11
override_dh_auto_install:
 
12
        dh_auto_install
34
13
        cp $(CURDIR)/extra/bash-completion-atool* $(CURDIR)/debian/atool/etc/bash_completion.d/atool
35
14
        chmod -x $(CURDIR)/debian/atool/etc/bash_completion.d/atool
36
 
        dh_install
37
 
 
38
 
binary-arch:
39
 
 
40
 
binary-indep: install
41
 
        dh_testdir
42
 
        dh_testroot
43
 
        dh_installchangelogs NEWS
44
 
        dh_installdocs
45
 
        dh_installexamples
46
 
        dh_installman
47
 
        dh_link usr/bin/atool usr/bin/acat \
48
 
                usr/bin/atool usr/bin/adiff \
49
 
                usr/bin/atool usr/bin/als \
50
 
                usr/bin/atool usr/bin/apack \
51
 
                usr/bin/atool usr/bin/arepack \
52
 
                usr/bin/atool usr/bin/aunpack \
53
 
                usr/share/man/man1/atool.1 /usr/share/man/man1/acat.1 \
54
 
                usr/share/man/man1/atool.1 /usr/share/man/man1/adiff.1 \
55
 
                usr/share/man/man1/atool.1 /usr/share/man/man1/als.1 \
56
 
                usr/share/man/man1/atool.1 /usr/share/man/man1/apack.1 \
57
 
                usr/share/man/man1/atool.1 /usr/share/man/man1/arepack.1 \
58
 
                usr/share/man/man1/atool.1 /usr/share/man/man1/aunpack.1
59
 
        dh_compress
60
 
        dh_fixperms
61
 
        dh_lintian
62
 
        dh_perl
63
 
        dh_installdeb
64
 
        dh_gencontrol
65
 
        dh_md5sums
66
 
        dh_builddeb
67
 
 
68
 
binary: binary-indep binary-arch
69
 
.PHONY: clean build binary-indep binary install binary-arch