~ubuntu-branches/debian/sid/strace/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Frederik Schüler
  • Date: 2010-05-04 14:31:46 UTC
  • mfrom: (0.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100504143146-yo6uohwusjj7qxm3
Tags: 4.5.20-2
Add missing sparc syscall defines to fix FTBFS on sparc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
  CFLAGS += -O2
11
11
endif
12
12
 
 
13
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
14
  NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
15
  MAKEFLAGS += -j$(NUMJOBS)
 
16
endif
 
17
 
13
18
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14
19
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
15
20
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
19
24
  HOST64 = $(strip $(patsubst $(DEB_HOST_ARCH)=%, %, \
20
25
             $(filter $(DEB_HOST_ARCH)=%, $(arch64_map))))-linux-gnu
21
26
  CC64 = gcc -m64
22
 
  extra_build_targets += stamp-build64
 
27
  extra_build_targets += build64-stamp
23
28
endif
24
29
 
25
30
ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
28
33
  CONFIG_OPTS = --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
29
34
endif
30
35
 
31
 
all build: stamp-build $(extra_build_targets)
 
36
all build: build-stamp $(extra_build_targets)
32
37
 
33
 
stamp-%: %/Makefile
 
38
%-stamp: %/Makefile
34
39
        $(MAKE) -C $*
35
40
        touch $@
36
41
 
45
50
clean:
46
51
        dh_testdir
47
52
        dh_testroot
48
 
        dh_prep
 
53
        rm -rf build build64 strace64.1
49
54
        dh_clean
50
 
        rm -rf debian/strace debian/strace-udeb debian/substvars debian/files debian/files~
51
 
        rm -rf build64 stamp-build64 strace64.1
52
 
        rm -rf build stamp-build
53
55
 
54
56
binary: binary-indep binary-arch
55
57
 
56
58
binary-indep:
57
59
 
58
 
binary-arch: build 
59
 
        test -f stamp-build || make $(MFLAGS) -f debian/rules build
 
60
binary-arch: build
 
61
        test -f build-stamp || make $(MFLAGS) -f debian/rules build
60
62
        
61
63
        # prepare 64bit executable and manpage, if it has been built
62
 
        test -f stamp-build64 && ( mv build64/strace build64/strace64 ; \
 
64
        test -f build64-stamp && ( mv build64/strace build64/strace64 ; \
63
65
                cp strace.1 strace64.1 ) || true
64
66
        
65
67
        dh_testdir -s
79
81
        dh_gencontrol -s
80
82
        dh_md5sums -s
81
83
        dh_builddeb -s
82