File: rules

package info (click to toggle)
dctrl-tools 2.24-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,824 kB
  • sloc: ansic: 3,802; sh: 228; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 551 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# Written by Antti-Juhani Kaijanaho <ajk@debian.org>.  
# You may treat this file as if it were in the public domain.

%:
	dh $@

DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE  := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
	cross :=
else
	cross := CC=$(DEB_HOST_GNU_TYPE)-gcc
endif

override_dh_auto_build:
	dh_auto_build -- prefix=/usr sysconfdir=/etc $(cross)
override_dh_auto_install:
	dh_auto_install -- prefix=/usr sysconfdir=/etc