~ubuntu-branches/ubuntu/trusty/libotr2/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2012-11-05 01:06:26 UTC
  • Revision ID: package-import@ubuntu.com-20121105010626-fij3aqv10v51x2id
Tags: 3.2.1-1ubuntu1
Resurrect libotr2 in a separate package. Fixes libotr transition &
uninstallable packages. (LP: #1075016)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# This file was originally written by Joey Hess and Craig Small.
 
5
# As a special exception, when this file is copied by dh-make into a
 
6
# dh-make output file, you may use that output file without restriction.
 
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
 
 
12
 
 
13
 
 
14
 
 
15
CFLAGS = -Wall -g
 
16
 
 
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
18
        CFLAGS += -O0
 
19
else
 
20
        CFLAGS += -O2
 
21
endif
 
22
 
 
23
configure: configure-stamp
 
24
configure-stamp:
 
25
        dh_testdir
 
26
 
 
27
        ln -sf /usr/share/misc/config.sub .
 
28
        ln -sf /usr/share/misc/config.guess .
 
29
        rm -f config.cache
 
30
 
 
31
        # Add here commands to configure the package.
 
32
        ./configure --with-pic --prefix=/usr --mandir=/usr/share/man
 
33
 
 
34
        touch configure-stamp
 
35
 
 
36
 
 
37
build: build-arch build-indep
 
38
build-arch: build-stamp
 
39
build-indep: build-stamp
 
40
 
 
41
build-stamp: configure-stamp 
 
42
        dh_testdir
 
43
 
 
44
        # Add here commands to compile the package.
 
45
        $(MAKE)
 
46
 
 
47
        touch build-stamp
 
48
 
 
49
clean:
 
50
        dh_testdir
 
51
        dh_testroot
 
52
        rm -f build-stamp configure-stamp
 
53
 
 
54
        # Add here commands to clean up after the build process.
 
55
        [ ! -f Makefile ] || $(MAKE) distclean
 
56
 
 
57
        dh_clean 
 
58
 
 
59
install: build
 
60
        dh_testdir
 
61
        dh_testroot
 
62
        dh_prep
 
63
        dh_installdirs
 
64
 
 
65
        # Add here commands to install the package
 
66
        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
 
67
        find $(CURDIR)/debian/tmp/usr/lib -name "*.la" -exec \
 
68
                sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} +
 
69
 
 
70
        dh_install --list-missing
 
71
 
 
72
 
 
73
# Build architecture-independent files here.
 
74
binary-indep: build install
 
75
# We have nothing to do by default.
 
76
 
 
77
# Build architecture-dependent files here.
 
78
binary-arch: build install
 
79
        dh_testdir
 
80
        dh_testroot
 
81
        dh_installchangelogs ChangeLog
 
82
        dh_installdocs
 
83
#       dh_installexamples
 
84
#       dh_installmenu
 
85
#       dh_installdebconf       
 
86
#       dh_installlogrotate
 
87
#       dh_installemacsen
 
88
#       dh_installpam
 
89
#       dh_installmime
 
90
#       dh_installinit
 
91
#       dh_installcron
 
92
#       dh_installinfo
 
93
#       dh_installman
 
94
#       dh_link
 
95
        dh_strip
 
96
        dh_compress
 
97
        dh_fixperms
 
98
#       dh_perl
 
99
#       dh_python
 
100
        dh_makeshlibs -V
 
101
        dh_installdeb
 
102
        dh_shlibdeps
 
103
        dh_gencontrol
 
104
        dh_md5sums
 
105
        dh_builddeb
 
106
 
 
107
binary: binary-indep binary-arch
 
108
.PHONY: build clean binary-indep binary-arch binary install configure