File: rules

package info (click to toggle)
libsepol 2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,132 kB
  • ctags: 5,880
  • sloc: ansic: 80,871; makefile: 172; lex: 65
file content (33 lines) | stat: -rwxr-xr-x 939 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DESTDIR = $(CURDIR)/debian/tmp
export LIBDIR=$${DESTDIR}/usr/lib/${DEB_HOST_MULTIARCH}
export SHLIBDIR=$${DESTDIR}/lib/${DEB_HOST_MULTIARCH}
export LIBBASE=lib/${DEB_HOST_MULTIARCH}

# The build system doesn't use CPPFLAGS, pass them to CFLAGS to enable the
# missing (hardening) flags.
export DEB_CFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS)

# for cross compilation
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
export CC=$(DEB_HOST_GNU_TYPE)-gcc
endif

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	rm -f $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/libsepol.so
	ln -s /lib/$(DEB_HOST_MULTIARCH)/libsepol.so.1 $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/libsepol.so

override_dh_install:
	dh_install --list-missing

override_dh_auto_test: