~ubuntu-branches/ubuntu/warty/read-edid/warty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Branden Robinson
  • Date: 2002-10-03 00:35:32 UTC
  • Revision ID: james.westby@ubuntu.com-20021003003532-gm7ydch65my0u6ki
Tags: 1.4.1-2
* get-edid.man: wrote manpage for get-edid and parse-edid (Closes: #102233)
* debian/control:
  - changed Section to "utils" (Closes: #145104)
  - increment versioned build-dependency on debhelper to (>= 4.0)
  - increment Standards-Version to 3.5.7
* debian/copyright:
  - note change to upstream source (manpage)
* debian/rules:
  - use DH_COMPAT and set debhelper compatibility level to 4
  - set CFLAGS to include -g per Debian Policy 11.1
  - set CFLAGS to inclue -O2 unless DEB_BUILD_OPTIONS includes "noopt", per
    Debian Policy 11.1
  - tweak install rule for debhelper 4 differences, and install new manpage

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# Licensed under the GNU General Public License, version 2.  See the file
6
6
# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
7
7
 
 
8
# Uncomment this to turn on verbose mode.
 
9
#export DH_VERBOSE=1
 
10
 
 
11
# This is the debhelper compatability version to use.
 
12
export DH_COMPAT=4
 
13
 
 
14
CFLAGS=-g
 
15
# Does DEB_BUILD_OPTIONS contain the "noopt" flag?
 
16
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
17
# don't get rid of the space in the next line
 
18
CFLAGS+= -O2
 
19
endif
 
20
 
 
21
export CFLAGS
 
22
 
8
23
build: configure build-stamp
9
24
build-stamp:
10
25
        dh_testdir
29
44
        dh_testroot
30
45
        dh_clean -k
31
46
        dh_installdirs
32
 
        install -m 755 -d debian/tmp/usr/bin
33
 
        install -m 755 get-edid debian/tmp/usr/bin
34
 
        install -m 755 parse-edid debian/tmp/usr/bin
 
47
        install -m 755 -d debian/read-edid/usr/bin
 
48
        install -m 755 get-edid debian/read-edid/usr/bin
 
49
        install -m 755 parse-edid debian/read-edid/usr/bin
 
50
        install -m 755 -d debian/read-edid/usr/share/man/man1
 
51
        install -m 644 get-edid.man debian/read-edid/usr/share/man/man1/get-edid.1
 
52
        ln -s get-edid.1 debian/read-edid/usr/share/man/man1/parse-edid.1
35
53
 
36
54
binary-arch: build install
37
55
        dh_testdir
38
56
        dh_testroot
39
57
        dh_installdocs
40
 
        #dh_installmanpages
41
58
        dh_undocumented
42
59
        dh_installchangelogs ChangeLog
43
60
        dh_strip