~ubuntu-branches/ubuntu/saucy/dosfstools/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-12-04 14:35:46 UTC
  • Revision ID: package-import@ubuntu.com-20121204143546-aoywbr06g10xz7xa
Tags: 3.0.13-1ubuntu1
Use correct compiler when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
4
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
5
 
3
6
%:
4
7
        dh ${@}
5
8
 
 
9
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
 
10
override_dh_auto_build:
 
11
        dh_auto_build -- CC=$(DEB_HOST_GNU_TYPE)-gcc
 
12
endif
 
13
 
6
14
override_dh_auto_install:
7
15
        dh_auto_install -- DESTDIR=$(CURDIR)/debian/dosfstools PREFIX=/usr SBINDIR=/sbin
8
16