~ubuntu-branches/ubuntu/lucid/wmmoonclock/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Denis Briand
  • Date: 2009-07-26 10:30:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090726103000-2y5ws6okikxakvfp
Tags: 1.27-28
* Add southern hemisphere support (Closes: #537480).
  Thanks to Alvaro Steiger.
* Bump standards version to 3.8.2.0
* Add quilt patch system.
* Add patches:
  + 01_all_previous_diff.diff
  + 02_update_time.diff
  + 03_add_southern_hemisphere_support.diff
  + 04_fix_hyphen_used_as_minus_sign.diff
* Add debhelper 7 build depends.
* Add debian/compat file.
* Remove trailing whitespaces in changelog.upstream.
* Add an empty watch file (no upstream repository).
* Improve rules file by using more debhelper commands.
* Remove Martin A. Godisch from uploaders field
  Thanks to him to have sponsored wmmoonclock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
#export DH_VERBOSE=1
 
4
 
3
5
BUILDDIR = debian/wmmoonclock
4
6
DEBDIR   = $(BUILDDIR)/DEBIAN
5
7
DOCDIR   = $(BUILDDIR)/usr/share/doc/wmmoonclock
6
 
testdir  = test -f Src/wmMoonClock.c && test -f debian/rules
7
 
testroot = test x`whoami` = xroot
8
8
 
9
9
CFLAGS = -Wall -g
10
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
14
endif
15
15
export CFLAGS
16
16
 
17
 
clean:
18
 
        $(testdir)
 
17
clean: unpatch
 
18
        dh_testdir
19
19
        -rm -f build debian/files debian/substvars
20
20
        [ ! -f Src/Makefile ] || $(MAKE) -C Src clean
21
21
        -rm -rf debian/wmmoonclock
22
 
 
23
 
build:
24
 
        $(testdir)
 
22
        dh_clean
 
23
 
 
24
patch: patch-stamp
 
25
 
 
26
patch-stamp:
 
27
        dh_quilt_patch
 
28
        touch patch-stamp
 
29
 
 
30
unpatch:
 
31
        dh_quilt_unpatch
 
32
 
 
33
build: patch
 
34
        dh_testdir
25
35
        $(MAKE) -C Src
26
36
        touch build
27
37
 
30
40
binary-indep:
31
41
 
32
42
binary-arch: build
33
 
        $(testdir)
34
 
        $(testroot)
 
43
        dh_testdir
 
44
        dh_testroot
35
45
        rm -rf debian/wmmoonclock
36
46
 
37
47
        $(MAKE) -C Src install DESTDIR=$(CURDIR)/debian/wmmoonclock