~ubuntu-branches/ubuntu/oneiric/alarm-clock-applet/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-05-30 23:24:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090530232427-c2637bxnof0jzgql
Tags: 0.2.6-1
Initial release (Closes: #531065)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
export LDFLAGS=-Wl,--as-needed -Wl,-z,defs
 
5
 
 
6
MAKEFILE = $(firstword $(MAKEFILE_LIST))
 
7
DEBIAN_DIR = $(dir $(MAKEFILE))
 
8
SOURCE_DIR = $(DEBIAN_DIR)/..
 
9
VERSION = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | \
 
10
        sed -n 's/-.*$$//; s/^Version: //p')
 
11
PACKAGE = $(shell sed -n 's/^Source: //p' $(DEBIAN_DIR)/control)
 
12
 
 
13
get-orig-source:
 
14
        uscan \
 
15
                --force-download \
 
16
                --download \
 
17
                --rename \
 
18
                --package=$(PACKAGE) \
 
19
                --upstream-version=$(VERSION) \
 
20
                --watchfie=$(DEBIAN_DIR)/watch \
 
21
                --destdir=.
 
22
 
 
23
# disable tests; it requires a running D-Bus session
 
24
override_dh_auto_test:
 
25
 
 
26
override_dh_installchangelogs:
 
27
        dh_installchangelogs ChangeLog
 
28
 
 
29
clean:
 
30
        rm -f debian/alarm-clock-applet.1
 
31
        dh $@
 
32
%:
 
33
        dh $@