~ubuntu-branches/debian/sid/clalsadrv/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayak
  • Date: 2004-09-01 11:55:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040901115533-pxy26xwp1mm3w0my
Tags: 1.0.0-1
* Initial Release.
* First Debian upload (closes: #269394), sponsored by 
  Cosimo Alfarano <kalfa@debian.org>

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
# GNU copyright 1997 to 1999 by Joey Hess.
 
5
 
 
6
# Uncomment this to turn on verbose mode.
 
7
#export DH_VERBOSE=1
 
8
 
 
9
include /usr/share/dpatch/dpatch.make
 
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
# shared library versions, option 1
 
23
version=2.0.5
 
24
major=2
 
25
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
 
26
#version=`ls src/.libs/lib*.so.* | \
 
27
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
 
28
#major=`ls src/.libs/lib*.so.* | \
 
29
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
30
 
 
31
configure: configure-stamp
 
32
configure-stamp:
 
33
        dh_testdir
 
34
        # Add here commands to configure the package.
 
35
 
 
36
        touch configure-stamp
 
37
 
 
38
 
 
39
build: build-stamp
 
40
build-stamp: patch-stamp configure-stamp 
 
41
        dh_testdir
 
42
 
 
43
        # Add here commands to compile the package.
 
44
        $(MAKE)
 
45
 
 
46
        touch build-stamp
 
47
 
 
48
clean: unpatch
 
49
        dh_testdir
 
50
        dh_testroot
 
51
        rm -f build-stamp configure-stamp
 
52
 
 
53
        # Add here commands to clean up after the build process.
 
54
        -$(MAKE) clean
 
55
 
 
56
        dh_clean 
 
57
 
 
58
install: build
 
59
        dh_testdir
 
60
        dh_testroot
 
61
        dh_clean -k 
 
62
        dh_installdirs
 
63
 
 
64
        # Add here commands to install the package into debian/tmp
 
65
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
 
66
 
 
67
 
 
68
# Build architecture-independent files here.
 
69
binary-indep: build install
 
70
# We have nothing to do by default.
 
71
 
 
72
# Build architecture-dependent files here.
 
73
binary-arch: build install
 
74
        dh_testdir
 
75
        dh_testroot
 
76
        dh_installchangelogs 
 
77
        dh_installdocs
 
78
        dh_installexamples
 
79
        dh_install --sourcedir=debian/tmp
 
80
#       dh_installmenu
 
81
#       dh_installdebconf       
 
82
#       dh_installlogrotate
 
83
#       dh_installemacsen
 
84
#       dh_installpam
 
85
#       dh_installmime
 
86
#       dh_installinit
 
87
#       dh_installcron
 
88
#       dh_installinfo
 
89
        dh_installman
 
90
        dh_link
 
91
        dh_strip
 
92
        dh_compress
 
93
        dh_fixperms
 
94
#       dh_perl
 
95
#       dh_python
 
96
        dh_makeshlibs
 
97
        dh_installdeb
 
98
        dh_shlibdeps
 
99
        dh_gencontrol
 
100
        dh_md5sums
 
101
        dh_builddeb
 
102
 
 
103
binary: binary-indep binary-arch
 
104
.PHONY: build clean binary-indep binary-arch binary install configure