~ubuntu-branches/ubuntu/hardy/gnomad2/hardy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Shaun Jackman
  • Date: 2005-08-19 16:09:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050819160928-l2glu227nh0algdc
Tags: 2.8.0-2
Add a versioned dependency for libnjb-dev (>> 2.2). Closes: #324036.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
4
 
# GNU copyright 1997 to 1999 by Joey Hess.
5
 
 
6
 
# These are used for cross-compiling and for saving the configure script
7
 
# from having to guess our platform (since we know it already)
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
 
CFLAGS = -Wall -g
12
 
 
13
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
 
        CFLAGS += -O0
15
 
else
16
 
        CFLAGS += -O2
17
 
endif
18
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
19
 
        INSTALL_PROGRAM += -s
20
 
endif
21
 
 
22
 
 
23
 
config.status: configure
24
 
        dh_testdir
25
 
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man
26
2
 
27
3
build: build-stamp
28
 
build-stamp: config.status
29
 
        dh_testdir
 
4
build-stamp:
 
5
        ./configure --prefix=/usr --mandir=/usr/share/man
30
6
        $(MAKE)
31
 
        touch build-stamp
 
7
        touch $@
 
8
 
 
9
install: build
 
10
        dh_clean -k
 
11
        $(MAKE) DESTDIR=$(PWD)/debian/gnomad2 install
32
12
 
33
13
clean:
34
 
        dh_testdir
35
 
        dh_testroot
36
14
        rm -f build-stamp
 
15
        dh_clean
37
16
        -$(MAKE) distclean
38
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
39
 
        cp -f /usr/share/misc/config.sub config.sub
40
 
endif
41
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
42
 
        cp -f /usr/share/misc/config.guess config.guess
43
 
endif
44
 
        dh_clean
45
 
 
46
 
install: build
47
 
        dh_testdir
48
 
        dh_testroot
49
 
        dh_clean -k
50
 
        dh_installdirs
51
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/gnomad2
52
 
 
53
 
 
54
 
# Build architecture-independent files.
55
 
binary-indep: build install
56
 
# We have nothing to do.
57
 
 
58
 
# Build architecture-dependent files.
59
 
binary-arch: build install
60
 
        dh_testdir
61
 
        dh_testroot
62
 
        dh_installchangelogs ChangeLog
63
 
        dh_installdocs
64
 
        dh_installexamples
65
 
        dh_installman
66
 
        dh_link
67
 
        dh_strip
68
 
        dh_compress
69
 
        dh_fixperms
70
 
        dh_installdeb
71
 
        dh_shlibdeps
72
 
        dh_gencontrol
73
 
        dh_md5sums
74
 
        dh_builddeb
 
17
 
 
18
binary-indep:
 
19
 
 
20
binary-arch: install
 
21
        dh_installchangelogs -a ChangeLog
 
22
        dh_installdocs -a
 
23
        dh_installexamples -a
 
24
        dh_installman -a
 
25
        dh_compress -a
 
26
        dh_fixperms -a
 
27
        dh_strip -a
 
28
        dh_makeshlibs -a
 
29
        dh_shlibdeps -a
 
30
        dh_gencontrol -a
 
31
        dh_md5sums -a
 
32
        dh_builddeb -a
75
33
 
76
34
binary: binary-indep binary-arch
77
 
.PHONY: build clean binary-indep binary-arch binary install
 
35
 
 
36
.PHONY: build install clean binary-indep binary-arch binary