~ubuntu-branches/ubuntu/precise/nettle/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Magnus Holmgren
  • Date: 2008-04-20 00:40:55 UTC
  • mfrom: (3.1.7 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080420004055-r0jr22szk4aub1v5
Tags: 1.15-5
* New maintainer email address.
* Bring debian/control format up-to-date with Homepage and Vcs fields.
* Add machine-readable copyright information to debian/copyright and
  clarify licensing of nettle-lfib-stream.1 and pkcs1-conv.1. The
  machine-readable information may not be completely accurate at this
  point due to the many different authors and licenses.
* Don't ignore make potential distclean errors.
* debian/libnettle-dev.doc-base: Change section to Programming/C
  following the abolishion of the Apps section.
* Bump Standards-Version to 3.7.3 without any changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
# Uncomment this to turn on verbose mode.
7
7
#export DH_VERBOSE=1
8
 
 
 
8
include /usr/share/dpatch/dpatch.make
9
9
 
10
10
# These are used for cross-compiling and for saving the configure script
11
11
# from having to guess our platform (since we know it already)
24
24
        INSTALL_PROGRAM += -s
25
25
endif
26
26
 
27
 
# shared library versions, option 1
28
 
version=2.0.5
29
 
major=2
30
 
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
31
 
#version=`ls src/.libs/lib*.so.* | \
32
 
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
33
 
#major=`ls src/.libs/lib*.so.* | \
34
 
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
35
 
 
36
 
config.status: configure
 
27
config.status: ${DPATCH_STAMPFN} configure
37
28
        dh_testdir
38
29
        # Add here commands to configure the package.
39
30
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
50
41
        dh_testdir
51
42
 
52
43
        # Add here commands to compile the package.
53
 
        $(MAKE)
 
44
        $(MAKE) MAKEINFO='makeinfo --enable-encoding'
 
45
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 
46
        $(MAKE) check
 
47
endif
54
48
 
55
49
        touch build-stamp
56
50
 
57
 
clean:
 
51
clean: clean-patched unpatch
 
52
        dh_clean
 
53
 
 
54
clean-patched:
58
55
        dh_testdir
59
56
        dh_testroot
60
57
        rm -f build-stamp 
61
58
 
62
59
        # Add here commands to clean up after the build process.
63
 
        -$(MAKE) distclean
64
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
65
 
        cp -f /usr/share/misc/config.sub config.sub
66
 
endif
67
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
68
 
        cp -f /usr/share/misc/config.guess config.guess
69
 
endif
70
 
 
71
 
 
72
 
        dh_clean 
 
60
        [ ! -f Makefile ] || $(MAKE) distclean
73
61
 
74
62
install: build
75
63
        dh_testdir
89
77
binary-arch: build install
90
78
        dh_testdir
91
79
        dh_testroot
92
 
        dh_movefiles
 
80
        dh_install --sourcedir=debian/tmp
93
81
        dh_installchangelogs ChangeLog
94
82
        dh_installdocs
95
83
        dh_installexamples
97
85
        dh_installman
98
86
        dh_link
99
87
        dh_strip
100
 
        dh_compress
 
88
        dh_compress -X.pdf
101
89
        dh_fixperms
102
 
        dh_makeshlibs
 
90
        dh_makeshlibs -V 'libnettle2 (>= 1.15)'
103
91
        dh_installdeb
104
92
        dh_shlibdeps
105
93
        dh_gencontrol
107
95
        dh_builddeb
108
96
 
109
97
binary: binary-indep binary-arch
110
 
.PHONY: build clean binary-indep binary-arch binary install 
 
98
.PHONY: build clean clean-patched binary-indep binary-arch binary install