File: rules

package info (click to toggle)
partman-crypto 106
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,740 kB
  • sloc: sh: 1,690; ansic: 132; makefile: 20
file content (13 lines) | stat: -rwxr-xr-x 346 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/make -f

DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

%:
	dh $@ --with d-i

ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
override_dh_auto_build:
	dh_auto_build -- \
		CC=$(DEB_HOST_GNU_TYPE)-gcc STRIP=$(DEB_HOST_GNU_TYPE)-strip
endif