~ubuntu-branches/ubuntu/saucy/xdaliclock/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-07-16 10:01:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130716100114-zgaclt1rkj4y71g3
Tags: 2.38-1
* New upstream release.
* debian/control:
  + Added VCS-* fields.
  + Updated to Standards-Version 3.9.4
* debian/rules:
  + Rewrote to use dh.
* Added debian/docs file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
3
2
 
4
3
#export DH_VERBOSE=1
5
4
 
6
5
export DEB_BUILD_HARDENING=1
7
6
 
8
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
10
 
 
11
7
CFLAGS = -Wall -g
12
8
 
13
9
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
16
12
        CFLAGS += -O2
17
13
endif
18
14
 
19
 
build: build-arch build-indep
20
 
build-arch: build-stamp
21
 
build-indep: build-stamp
22
 
 
23
 
build-stamp:
24
 
        dh_testdir
25
 
        ln -sf /usr/share/misc/config.sub config.sub
26
 
        ln -sf /usr/share/misc/config.guess config.guess
 
15
override_dh_auto_configure:
27
16
        cd X11 && ( CFLAGS="$(CFLAGS)" ./configure \
28
17
                --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
29
18
                --prefix=/usr --mandir=/usr/share/man )
 
19
 
 
20
override_dh_auto_build:
30
21
        cd X11 && $(MAKE) CFLAGS="$(CFLAGS)"
31
 
        touch $@
32
22
 
33
 
clean:
34
 
        dh_testdir
35
 
        dh_testroot
36
 
        rm -f build-stamp
 
23
override_dh_auto_clean:
37
24
        [ ! -f X11/Makefile ] || ( cd X11 && $(MAKE) distclean )
38
 
        dh_clean config.sub config.guess
39
25
 
40
 
install: build
41
 
        dh_testdir
42
 
        dh_testroot
43
 
        dh_prep
 
26
override_dh_auto_install:
44
27
        dh_installdirs usr/share/man/man1 usr/bin
45
28
        cd X11 && $(MAKE) install_prefix=$(CURDIR)/debian/xdaliclock install
46
29
 
47
 
binary-indep: build install
48
 
# We have nothing to do by default.
49
 
 
50
 
binary-arch: build install
51
 
        dh_testdir
52
 
        dh_testroot
53
 
        dh_installdocs README
54
 
        dh_installmenu
55
 
        dh_installman
56
 
        dh_installchangelogs
57
 
        dh_link
58
 
        dh_strip
59
 
        dh_compress
60
 
        dh_fixperms
61
 
        dh_installdeb
62
 
        dh_shlibdeps
63
 
        dh_gencontrol
64
 
        dh_md5sums
65
 
        dh_builddeb
66
 
 
67
 
binary: binary-indep binary-arch
68
 
.PHONY: build clean build-arch build-indep binary-indep binary-arch binary install
 
30
%:
 
31
        dh $@