~ubuntu-branches/ubuntu/maverick/gelemental/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Tirabassi
  • Date: 2008-05-30 10:45:06 UTC
  • Revision ID: james.westby@ubuntu.com-20080530104506-g1fzmx9juf759rx3
Tags: 1.2.0-2ubuntu1
* fakesync to synchronize with Debian unstable (LP: #235031)
* Modify Maintainer value to match the DebianMaintainerField
  specification.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Uncomment this to turn on verbose mode.
4
4
#export DH_VERBOSE=1
5
5
 
 
6
include /usr/share/dpatch/dpatch.make
 
7
 
6
8
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
9
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
10
 
18
20
#Linker flags
19
21
LDFLAGS = -Wl,--as-needed
20
22
 
21
 
configure: configure-stamp
22
 
configure-stamp:
 
23
config.status: patch-stamp configure
23
24
        dh_testdir
24
 
        
25
 
        CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure \
26
 
        --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
27
 
        --enable-api_docs --prefix=/usr
28
 
 
29
 
        touch configure-stamp
 
25
        CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
 
26
          ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 
27
                      --enable-api_docs --prefix=/usr
30
28
 
31
29
build: build-stamp
32
 
 
33
 
build-stamp: configure-stamp
 
30
build-stamp: config.status
34
31
        dh_testdir
35
 
 
36
32
        $(MAKE)
37
 
 
38
33
        touch $@
39
34
 
40
 
clean:
 
35
clean: unpatch
41
36
        dh_testdir
42
37
        dh_testroot
43
 
        rm -f build-stamp configure-stamp
44
 
 
45
38
        [ ! -f Makefile ] || $(MAKE) distclean
46
 
 
47
39
        rm -rf docs/api/html
48
 
        dh_clean
 
40
        dh_clean patch-stamp build-stamp
49
41
 
50
42
install: build
51
43
        dh_testdir
53
45
        dh_clean -k
54
46
        dh_installdirs
55
47
 
56
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
 
48
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
57
49
 
58
50
binary-indep: build install
59
51
        dh_testdir -i
60
52
        dh_testroot -i
61
53
        dh_installchangelogs -i ChangeLog
62
54
        dh_installdocs -i
63
 
        dh_install -i
 
55
        dh_install -i --sourcedir=debian/tmp
64
56
        dh_compress -i
65
57
        dh_fixperms -i
66
58
        dh_installdeb -i
75
67
        dh_installdocs -a
76
68
        dh_installman -pgelemental
77
69
        dh_installmenu -pgelemental
78
 
        dh_install -a
 
70
        dh_install --list-missing --sourcedir=debian/tmp
79
71
        dh_makeshlibs -a -V
80
72
        dh_link -a
81
73
        dh_strip -a
89
81
        dh_builddeb -a
90
82
 
91
83
binary: binary-indep binary-arch
92
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
84
 
 
85
get-orig-source:
 
86
        uscan --force-download --repack
 
87
 
 
88
.PHONY: build clean binary-indep binary-arch binary install get-orig-source