Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
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
6 %:
7 dh $@
8
9 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
10 CROSS :=
11 else
12 CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc
13 endif
14
15 override_dh_auto_build:
16 $(MAKE) small $(CROSS)