~ubuntu-branches/ubuntu/lucid/pgpdump/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Rivas
  • Date: 2007-12-16 02:13:45 UTC
  • mfrom: (1.1.3 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20071216021345-lprua5i24y7l2mmw
Tags: 0.26-1
* New upstream version. (Closes: #443522)
* debian/copyright:
 + Updated source URL.
* debian/watch:
 + Updated watch URL.
* debian/rules:
 + Migrated to CDBS, completely new `debian/rules`.
* debian/control:
 + Standard-Versions updated to 3.7.3, no further modifications needed.
 + Added to Build-depends `cdbs`.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# $Id: rules 0 2003-06-18 03:57:34Z bob $
3
 
# Sample debian/rules that uses debhelper.
4
 
# This file is public domain software, originally written by Joey Hess. 
5
 
 
6
 
# from autotools-dev README.Debian
7
 
export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8
 
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
9
 
 
10
 
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
11
 
        confflags += --build $(DEB_HOST_GNU_TYPE)
12
 
else
13
 
        confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
14
 
endif
15
 
 
16
 
CFLAGS += -g
17
 
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18
 
        CFLAGS += -O2
19
 
endif
20
 
export CFLAGS
21
 
 
22
 
config.status: configure
23
 
        ./configure \
24
 
                $(confflags) \
25
 
                --prefix=/usr \
26
 
                --mandir=\$${prefix}/share/man
27
 
 
28
 
build: build-stamp
29
 
build-stamp: config.status
30
 
        dh_testdir
31
 
        $(MAKE)
32
 
        touch build-stamp
33
 
 
34
 
clean:
35
 
        dh_testdir
36
 
        dh_testroot
37
 
        rm -f build-stamp
38
 
        [ ! -f Makefile ] || $(MAKE) distclean
39
 
        dh_clean
40
 
 
41
 
install: build
42
 
        dh_testdir
43
 
        dh_testroot
44
 
        dh_clean -k
45
 
        dh_installdirs
46
 
        $(MAKE) prefix=$(CURDIR)/debian/pgpdump/usr install
47
 
 
48
 
# Build architecture-independent files here.
49
 
binary-indep: build install
50
 
# We have nothing to do by default.
51
 
 
52
 
# Build architecture-dependent files here.
53
 
binary-arch: build install
54
 
        dh_testdir
55
 
        dh_testroot
56
 
        dh_installchangelogs CHANGES
57
 
        dh_installdocs README
58
 
        dh_link
59
 
        dh_strip
60
 
        dh_compress
61
 
        dh_fixperms
62
 
        dh_installdeb
63
 
        dh_shlibdeps
64
 
        dh_gencontrol
65
 
        dh_md5sums
66
 
        dh_builddeb
67
 
 
68
 
binary: binary-indep binary-arch
69
 
.PHONY: build clean binary-indep binary-arch binary install
70
 
 
71
 
# vim:ts=4:sw=4:
 
2
# Jose Luis Rivas <ghostbar38@gmail.com
 
3
# This script is for public domain, feel free to reuse it in any way
 
4
 
 
5
include /usr/share/cdbs/1/rules/debhelper.mk
 
6
include /usr/share/cdbs/1/class/autotools.mk
 
7
 
 
8
DEB_MAKE_INSTALL_TARGET := install prefix=$(CURDIR)/debian/pgpdump/usr