~ubuntu-branches/ubuntu/lucid/libatomic-ops/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ian Wienand
  • Date: 2006-10-16 09:45:29 UTC
  • mfrom: (2.1.4 dapper)
  • Revision ID: james.westby@ubuntu.com-20061016094529-r3bevpq5w6g3rv20
Tags: 1.1-4
* Closes: #322027, #338469 -- add 04_m68k.patch for M68K support, from
  Roman Zippel <zippel@linux-m68k.org>.  Add note in README.Debian about
  port.
* Change mainatiner address to my @debian.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
 
 
10
 
INSTALL = install
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
 
 
23
 
config.status: config-stamp
24
 
config-stamp:
25
 
        dh_testdir
26
 
        # Add here commands to configure the package.
27
 
        CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
28
 
        touch config-stamp
29
 
 
30
 
build: build-stamp
31
 
build-stamp:  config.status
32
 
        dh_testdir
33
 
 
34
 
        # Add here commands to compile the package.
35
 
        $(MAKE)
36
 
 
37
 
        touch build-stamp
38
 
 
39
 
clean:
40
 
        dh_testdir
41
 
        dh_testroot
42
 
        rm -f build-stamp 
43
 
 
44
 
        # Add here commands to clean up after the build process.
45
 
        -$(MAKE) distclean
46
 
        rm -f config-stamp build-stamp
47
 
        dh_clean
48
 
 
49
 
install: build
50
 
        dh_testdir
51
 
        dh_testroot
52
 
        dh_installdirs
53
 
 
54
 
        # Add here commands to install the package into debian/tmp
55
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
56
 
        $(INSTALL) -m 644 debian/libatomic-ops.3 \
57
 
                          debian/libatomic-ops-dev/usr/share/man/man3
58
 
        dh_link -A
59
 
 
60
 
 
61
 
# Build architecture-independent files here.
62
 
binary-indep: build install
63
 
# We have nothing to do by default.
64
 
 
65
 
# Build architecture-dependent files here.
66
 
binary-arch: build install
67
 
        dh_testdir
68
 
        dh_testroot
69
 
        dh_movefiles
70
 
        dh_installchangelogs ChangeLog
71
 
        dh_installdocs
72
 
        dh_installexamples
73
 
#       dh_installdebconf       
74
 
        dh_installman -a
75
 
        dh_link
76
 
        dh_strip
77
 
        dh_compress
78
 
        dh_fixperms
79
 
        dh_makeshlibs
80
 
        dh_installdeb
81
 
        dh_shlibdeps
82
 
        dh_gencontrol
83
 
        dh_md5sums
84
 
        dh_builddeb
85
 
 
86
 
binary: binary-indep binary-arch
87
 
.PHONY: build clean binary-indep binary-arch binary install 
 
2
 
 
3
#nasty, but our patches touch parts of the build system.
 
4
DEB_AUTO_UPDATE_AUTOMAKE = 1.9
 
5
DEB_AUTO_UPDATE_ACLOCAL = $(DEB_AUTO_UPDATE_AUTOMAKE)
 
6
DEB_AUTO_UPDATE_AUTOCONF = 2.50
 
7
 
 
8
include /usr/share/cdbs/1/rules/debhelper.mk
 
9
include /usr/share/cdbs/1/class/autotools.mk
 
10
include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
11
 
 
12
#run tests
 
13
DEB_MAKE_CHECK_TARGET := check