~ubuntu-branches/ubuntu/gutsy/pkg-create-dbgsym/gutsy-updates

« back to all changes in this revision

Viewing changes to tests/dhtest.compat1/debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-03 10:58:17 UTC
  • Revision ID: james.westby@ubuntu.com-20070403105817-8gr6x57jupwe4ve8
Tags: 0.20
* Move test suite into tests/ to unclutter source root directory.
* Add tests/dhtest.versionoverride: Test case for overriding the version of
  a particular binary. This replicates LP #92747. However, since this is
  unfixable without major changes (dh_strip is called before dh_gencontrol
  usually), we do not run the test case for now.
* pkg_create_dbgsym: Do not generate conflicts to python dbg packages.
  (LP: #88695)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
 
 
6
# This has to be exported to make some magic below work.
 
7
export DH_OPTIONS
 
8
 
 
9
CFLAGS = -Wall -g
 
10
 
 
11
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
12
        CFLAGS += -O0
 
13
else
 
14
        CFLAGS += -O2
 
15
endif
 
16
 
 
17
#Architecture 
 
18
build: build-arch build-indep
 
19
 
 
20
build-arch: build-arch-stamp
 
21
build-arch-stamp:
 
22
        $(MAKE)
 
23
        touch build-arch-stamp
 
24
 
 
25
build-indep:
 
26
 
 
27
clean:
 
28
        dh_testdir
 
29
        dh_testroot
 
30
        rm -f build-arch-stamp build-indep-stamp
 
31
        -$(MAKE) clean
 
32
        dh_clean 
 
33
 
 
34
install: install-indep install-arch
 
35
install-indep:
 
36
        dh_testdir
 
37
        dh_testroot
 
38
        dh_clean -k -i 
 
39
        dh_installdirs -i
 
40
 
 
41
install-arch:
 
42
        dh_testdir
 
43
        dh_testroot
 
44
        dh_clean -k -s 
 
45
        dh_installdirs -s
 
46
        install -D -m 755 crash debian/tmp/usr/bin/crash
 
47
        install -D -m 755 crash2 debian/dhtest2/usr/bin/crash2
 
48
 
 
49
# Must not depend on anything. This is to be called by
 
50
# binary-arch/binary-indep
 
51
# in another 'make' thread.
 
52
binary-common:
 
53
        dh_testdir
 
54
        dh_testroot
 
55
        dh_installchangelogs 
 
56
        dh_installdocs
 
57
        dh_strip
 
58
        dh_compress 
 
59
        dh_fixperms
 
60
        dh_installdeb
 
61
        dh_shlibdeps
 
62
        dh_gencontrol
 
63
        dh_md5sums
 
64
        dh_builddeb
 
65
 
 
66
# Build architecture independant packages using the common target.
 
67
binary-indep: build-indep install-indep
 
68
        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
 
69
 
 
70
# Build architecture dependant packages using the common target.
 
71
binary-arch: build-arch install-arch
 
72
        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
 
73
 
 
74
binary: binary-arch binary-indep
 
75
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch