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

« back to all changes in this revision

Viewing changes to tests/dhtest.versionoverride/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
 
19
 
 
20
build-arch: build-arch-stamp
 
21
build-arch-stamp:
 
22
        $(MAKE)
 
23
        touch build-arch-stamp
 
24
 
 
25
clean:
 
26
        dh_testdir
 
27
        dh_testroot
 
28
        rm -f build-arch-stamp
 
29
        -$(MAKE) clean
 
30
        dh_clean 
 
31
 
 
32
install-arch:
 
33
        dh_testdir
 
34
        dh_testroot
 
35
        dh_clean -k -s 
 
36
        dh_installdirs -s
 
37
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
 
38
        dh_install -s --sourcedir=debian/tmp
 
39
 
 
40
# Build architecture dependant packages using the common target.
 
41
binary-arch: build-arch install-arch
 
42
        dh_testdir
 
43
        dh_testroot
 
44
        dh_installchangelogs -a
 
45
        dh_installdocs -a
 
46
        dh_strip -a
 
47
        dh_compress  -a
 
48
        dh_fixperms -a
 
49
        dh_installdeb -a
 
50
        dh_shlibdeps -a
 
51
        dh_gencontrol -pdhtest1
 
52
        dh_gencontrol -pdhtest2 -- -v1:42
 
53
        dh_md5sums -a
 
54
        dh_builddeb -a
 
55
 
 
56
binary: binary-arch
 
57
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch