~ubuntu-branches/ubuntu/wily/coreutils/wily-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-12-12 18:38:55 UTC
  • Revision ID: package-import@ubuntu.com-20121212183855-63510nq8k1eqla5i
Tags: 8.20-3ubuntu4
* Configure with --disable-silent-rules.
* Let it cross build:
  - Preseed some autoconf tests.
  - Build make-prime-list with the build compiler.
  - Don't rebuild the man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
  CFLAGS += -mieee
32
32
endif
33
33
 
 
34
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
 
35
  cross_build := yes
 
36
  CROSS_CONFIGURE_FLAGS = --cache-file=./config.cache
 
37
endif
 
38
 
34
39
# programs to include/not include
35
40
ifeq ($(DEB_HOST_ARCH_OS),hurd)
36
41
  BUILDPROG_OPTS := --enable-install-program=su,arch
49
54
configure-stamp: 
50
55
        dh_testdir
51
56
 
 
57
ifeq ($(cross_build),yes)
 
58
        ( \
 
59
          echo 'fu_cv_sys_stat_statfs2_bsize=yes'; \
 
60
          echo 'gl_cv_func_working_mkstemp=yes'; \
 
61
        ) > config.cache
 
62
endif
52
63
        CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
53
64
                LDFLAGS='$(LDFLAGS)' ./configure \
54
65
                --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
55
66
                --prefix=/usr -v \
56
67
                --libexecdir=/usr/lib \
57
68
                --infodir=/usr/share/info --mandir=/usr/share/man \
 
69
                --disable-silent-rules \
58
70
                $(BUILDPROG_OPTS)
59
71
 
60
72
        echo configured > configure-stamp
62
74
build: patch configure build-stamp
63
75
build-stamp: 
64
76
        dh_testdir
 
77
ifeq ($(cross_build),yes)
 
78
        touch man/*.1
 
79
        $(MAKE) src/make-prime-list CC=gcc
 
80
        $(MAKE) EXTRA_MANS=
 
81
else
65
82
        $(MAKE)
66
83
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
67
84
  ifeq (,$(findstring mips,$(DEB_BUILD_ARCH)))
68
85
        $(MAKE) check VERBOSE=yes 
69
86
  endif
70
87
endif
 
88
endif # cross build
71
89
        echo built > build-stamp
72
90
 
73
91
clean: unpatch clean1
97
115
        dh_clean -k
98
116
        dh_installdirs
99
117
 
 
118
ifeq ($(cross_build),yes)
 
119
        $(MAKE) install DESTDIR=$(CURDIR)/$(d) EXTRA_MANS=
 
120
else
100
121
        $(MAKE) install DESTDIR=$(CURDIR)/$(d)
 
122
endif
101
123
 
102
124
        # some things go in root rather than usr
103
125
        for f in $(BIN_PROGS); do \