~ubuntu-branches/ubuntu/saucy/liblastfm/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): John Stamp
  • Date: 2009-07-14 11:14:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090714111408-286fgiieczqa2qpi
Tags: 0.4.0~git20090710-1
* New upstream release from git snapshot.
* Bump Standards-Version to 3.8.2 (no changes needed).
* Shorten package descriptions.
* Bump shlibs version for liblastfm0.
* Rename debug package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
version=`ls _bin/lib*.so.* | \
 
8
 awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
 
9
major=`ls _bin/lib*.so.* | \
 
10
 awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
11
 
 
12
LDFLAGS += "-Wl,--no-undefined -Wl,--as-needed"
 
13
 
 
14
configure: config-stamp
 
15
config-stamp:
 
16
        dh_testdir
 
17
        ./configure --release --prefix /usr --no-strip
 
18
        touch $@
 
19
 
 
20
 
 
21
build: build-stamp
 
22
build-stamp:  configure
 
23
        dh_testdir
 
24
 
 
25
        # Add here commands to compile the package.
 
26
        $(MAKE) headers __src __fingerprint
 
27
 
 
28
        touch $@
 
29
 
 
30
clean:
 
31
        dh_testdir
 
32
        dh_testroot
 
33
        rm -f build-stamp config-stamp
 
34
 
 
35
        # Add here commands to clean up after the build process.
 
36
        [ ! -f Makefile ] || $(MAKE) distclean || true
 
37
 
 
38
        dh_clean
 
39
 
 
40
install: build
 
41
        dh_testdir
 
42
        dh_testroot
 
43
        dh_prep
 
44
        dh_installdirs
 
45
 
 
46
        # Add here commands to install the package into debian/tmp
 
47
        DESTDIR=$(CURDIR)/debian/tmp $(MAKE) install
 
48
 
 
49
 
 
50
# Build architecture-independent files here.
 
51
binary-indep: install
 
52
# We have nothing to do by default.
 
53
 
 
54
# Build architecture-dependent files here.
 
55
binary-arch: install
 
56
        dh_testdir
 
57
        dh_testroot
 
58
        dh_installchangelogs
 
59
        dh_installdocs
 
60
        dh_installexamples
 
61
        dh_install
 
62
        dh_installman
 
63
        dh_link
 
64
        dh_strip --dbg-package=liblastfm-dbg
 
65
        dh_compress
 
66
        dh_fixperms
 
67
        dh_makeshlibs -pliblastfm0 -V'liblastfm0 (>= 0.4.0~git20090710)'
 
68
        dh_makeshlibs -pliblastfm-fingerprint0 -V'liblastfm-fingerprint0'
 
69
        dh_installdeb
 
70
        dh_shlibdeps
 
71
        dh_gencontrol
 
72
        dh_md5sums
 
73
        dh_builddeb
 
74
 
 
75
binary: binary-indep binary-arch
 
76
.PHONY: build clean binary-indep binary-arch binary install