File: rules

package info (click to toggle)
libxshmfence 1.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,880 kB
  • sloc: sh: 4,594; ansic: 394; makefile: 57
file content (24 lines) | stat: -rwxr-xr-x 519 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_HOST_ARCH_OS), linux)
SHMDIR = /dev/shm
else
# kfreebsd buildds don't seem to have writable /dev/shm
SHMDIR = /tmp
endif

%:
	dh $@ --with quilt --builddirectory=build/

override_dh_makeshlibs:
	dh_makeshlibs --add-udeb=libxshmfence1-udeb -- -c4

override_dh_auto_configure:
	dh_auto_configure -- \
	    --disable-silent-rules \
	    --with-shared-memory-dir=$(SHMDIR)

override_dh_auto_test:
	dh_auto_test -- VERBOSE=1