File: rules

package info (click to toggle)
psmisc 23.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,060 kB
  • sloc: ansic: 5,677; sh: 5,115; makefile: 214; exp: 117; sed: 16
file content (24 lines) | stat: -rwxr-xr-x 623 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
#!/usr/bin/make -f
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)


ifeq ($(DEB_BUILD_ARCH_OS),linux)
CONFIGURE_FLAGS = --enable-selinux
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- ${CONFIGURE_FLAGS}
	# Tell blhc to ignore the signal name extraction
	@echo 'blhc: ignore-line-regexp: .*gcc -E -dM src/signames.c.*'

override_dh_auto_install:
	dh_auto_install
	if [ ! -f "debian/psmisc/usr/bin/fuser" ] ; then \
	  rm -f debian/psmisc/usr/share/man/man1/fuser.1 ; \
	fi
	if [ "$(DEB_HOST_ARCH_OS)" = "kfreebsd" ] ; then \
	  rm -f debian/psmisc/usr/share/man/man1/peekfd.1 ; \
	fi