~ubuntu-branches/ubuntu/maverick/almanah/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2009-05-16 15:49:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090516154921-2uhvlj8btb4qygmd
Tags: 0.6.1-0ubuntu1
* New upstream release (LP: #368078)
* debian/control:
  - Bump Standards-Version to 3.8.1
  - Add intltool, libedataserver1.2-dev, libedataserverui1.2-dev, 
    libecal1.2-dev, libcryptui-dev as build dependency
  - Remove build dependency on autotools-dev and chrpath
* debian/{control/compat/rules}: Move to mimalistic dh7 style
* Update debian/watch
* Update copyright information

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
config.status: configure
4
 
        dh_testdir      
5
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
6
 
        cp -f /usr/share/misc/config.sub config.sub
7
 
endif
8
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
9
 
        cp -f /usr/share/misc/config.guess config.guess
10
 
endif
11
 
        ./configure --prefix=/usr
12
 
 
13
 
build: build-stamp
14
 
 
15
 
build-stamp:  config.status
16
 
        dh_testdir
17
 
        $(MAKE)
18
 
        touch $@
19
 
 
20
 
clean:
21
 
        dh_testdir
22
 
        dh_testroot
23
 
        rm -f build-stamp 
24
 
        [ ! -f Makefile ] || $(MAKE) distclean
25
 
        rm -f config.sub config.guess
26
 
        dh_clean
27
 
 
28
 
install: build
29
 
        dh_testdir
30
 
        dh_testroot
31
 
        dh_clean -k 
32
 
        dh_installdirs
33
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/almanah install
34
 
        chrpath -d $(CURDIR)/debian/almanah/usr/bin/almanah
35
 
 
36
 
binary-indep: build install
37
 
 
38
 
binary-arch: build install
39
 
        dh_testdir
40
 
        dh_testroot
41
 
        dh_installchangelogs ChangeLog
42
 
        dh_installdocs
43
 
        dh_icons
44
 
        dh_install
45
 
        dh_installmenu
46
 
        dh_installman
47
 
        dh_strip
48
 
        dh_compress
49
 
        dh_fixperms
50
 
        dh_installdeb
51
 
        dh_shlibdeps
52
 
        dh_gencontrol
53
 
        dh_md5sums
54
 
        dh_builddeb
55
 
 
56
 
binary: binary-indep binary-arch
57
 
.PHONY: build clean binary-indep binary-arch binary install 
 
3
export DH_VERBOSE=1
 
4
 
 
5
MAKEFILE = $(firstword $(MAKEFILE_LIST))
 
6
DEBIAN_DIR = $(dir $(MAKEFILE))
 
7
SOURCE_DIR = $(DEBIAN_DIR)/..
 
8
 
 
9
DEB_VERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\  -f2)
 
10
DEB_SOURCE_NAME = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | grep ^Source | cut -d" " -f2)
 
11
VERSION = $(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
 
12
 
 
13
get-orig-source:
 
14
        uscan \
 
15
        --package $(DEB_SOURCE_NAME) \
 
16
        --watchfile $(DEBIAN_DIR)/watch \
 
17
        --upstream-version $(VERSION) \
 
18
        --download-version $(VERSION) \
 
19
        --destdir . \
 
20
        --force-download \
 
21
        --rename \
 
22
        --repack
 
23
 
 
24
 
 
25
override_dh_auto_install:
 
26
        dh_auto_install -- GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
 
27
 
 
28
%:
 
29
        dh $@