~ubuntu-branches/ubuntu/edgy/cdparanoia/edgy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Dale E Martin
  • Date: 2002-03-15 11:23:27 UTC
  • Revision ID: james.westby@ubuntu.com-20020315112327-i150jrt2nk22dqyw
Tags: 3a9.8-6
Closes #99703.  Andres Salomon was kind enough to send a patch
addressing this bug, as well as moving to a much more debhelper focused
build.  Joey Hess also was kind enough to give me some debhelper 
guidance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
# This is the debhelper compatibility version to use.
 
9
export DH_COMPAT=3
 
10
 
 
11
# These are used for cross-compiling and for saving the configure script
 
12
# from having to guess our platform (since we know it already)
 
13
DEB_HOST_GNU_TYPE       ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
14
DEB_BUILD_GNU_TYPE      ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
15
 
 
16
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
17
        CFLAGS += -g
 
18
endif
 
19
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
20
        INSTALL_PROGRAM += -s
 
21
endif
 
22
 
 
23
configure: configure-stamp
 
24
configure-stamp:
 
25
        dh_testdir
 
26
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 
27
                        --prefix=/usr --mandir=\$${prefix}/share/man \
 
28
                        --infodir=\$${prefix}/share/info
 
29
        touch configure-stamp
 
30
 
 
31
build: build-stamp
 
32
build-stamp: configure-stamp
 
33
        dh_testdir
 
34
        $(MAKE)
 
35
        touch build-stamp
 
36
 
 
37
clean:
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        rm -f build-stamp configure-stamp
 
41
        -$(MAKE) distclean
 
42
        dh_clean
 
43
 
 
44
install: build
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_clean -k
 
48
        dh_installdirs
 
49
        $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
 
50
 
 
51
binary-indep: build install
 
52
        dh_testdir
 
53
# There are no architecture-independent files to be uploaded
 
54
# generated by this package.  If there were any they would be
 
55
# made here.
 
56
 
 
57
binary-arch: build install
 
58
        dh_testdir
 
59
        dh_testroot
 
60
        dh_movefiles
 
61
        dh_installdebconf
 
62
        dh_link -pcdparanoia \
 
63
          usr/share/doc/libcdparanoia0 usr/share/doc/cdparanoia
 
64
        dh_link -p libcdparanoia0-dev \
 
65
                usr/share/doc/libcdparanoia0 usr/share/doc/libcdparanoia0-dev
 
66
        dh_installdocs
 
67
        dh_installexamples
 
68
        dh_installman
 
69
        dh_installinfo
 
70
        dh_installchangelogs
 
71
        dh_link
 
72
        dh_strip
 
73
        dh_compress
 
74
        dh_fixperms
 
75
        dh_makeshlibs -V
 
76
        dh_installdeb
 
77
        dh_shlibdeps
 
78
        dh_gencontrol
 
79
        dh_md5sums
 
80
        dh_builddeb
 
81
 
 
82
binary: binary-indep binary-arch
 
83
 
 
84
.PHONY: build clean binary-arch binary-indep binary install configure