~ubuntu-branches/ubuntu/trusty/editline/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jim Studt
  • Date: 2001-11-15 19:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20011115190000-5g995xfym9hjgt8o
Tags: 1.12-4
Add a Build-Depends for debhelper and libtool.  Thought those
were baseline.  closes: #117780

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
# This is the debhelper compatability version to use.
 
9
export DH_COMPAT=1
 
10
 
 
11
# shared library versions, option 1
 
12
version=0.0.0
 
13
major=0
 
14
#option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
 
15
#version=`ls .libs/lib*.so.* | \
 
16
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
 
17
#major=`ls .libs/lib*.so.* | \
 
18
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
19
 
 
20
build: build-stamp
 
21
build-stamp:
 
22
        dh_testdir
 
23
        # Add here commands to compile the package.
 
24
        $(MAKE)
 
25
        touch build-stamp
 
26
 
 
27
clean:
 
28
        dh_testdir
 
29
        dh_testroot
 
30
        rm -f build-stamp
 
31
 
 
32
        # Add here commands to clean up after the build process.
 
33
        -$(MAKE) clean
 
34
 
 
35
        dh_clean
 
36
 
 
37
install: build
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        dh_clean -k
 
41
        dh_installdirs
 
42
 
 
43
        # Add here commands to install the package into debian/tmp.
 
44
        $(MAKE) install DESTDIR=`pwd`/debian/tmp
 
45
 
 
46
 
 
47
# Build architecture-independent files here.
 
48
binary-indep: build install
 
49
# We have nothing to do by default.
 
50
 
 
51
# Build architecture-dependent files here.
 
52
binary-arch: build install
 
53
#       dh_testversion
 
54
        dh_testdir
 
55
        dh_testroot
 
56
 
 
57
        #
 
58
        # build libeditline${major} package by moving files from editline-dev
 
59
        #
 
60
        dh_movefiles -plibeditline$(major)             \
 
61
                usr/lib/libeditline.so.$(major)        \
 
62
                usr/lib/libeditline.so.$(version)
 
63
 
 
64
#       dh_installdebconf       
 
65
        dh_installdocs
 
66
        dh_installexamples
 
67
        dh_installmenu
 
68
        dh_installmanpages
 
69
        rm -r debian/libeditline0/usr/share/man/
 
70
#       dh_installemacsen
 
71
#       dh_installpam
 
72
#       dh_installinit
 
73
        dh_installcron
 
74
        dh_installinfo
 
75
#       dh_undocumented
 
76
        dh_installchangelogs 
 
77
        dh_link
 
78
        dh_strip
 
79
        dh_compress
 
80
        dh_fixperms
 
81
        # You may want to make some executables suid here.
 
82
        dh_suidregister
 
83
        dh_makeshlibs
 
84
        dh_installdeb
 
85
#       dh_perl
 
86
        dh_shlibdeps
 
87
        dh_gencontrol
 
88
        dh_md5sums
 
89
        dh_builddeb
 
90
 
 
91
binary: binary-indep binary-arch
 
92
.PHONY: build clean binary-indep binary-arch binary install