File: rules

package info (click to toggle)
libcache-memcached-fast-perl 0.28-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 664 kB
  • sloc: ansic: 8,001; perl: 671; makefile: 13; sh: 6
file content (20 lines) | stat: -rwxr-xr-x 437 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
20
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

BUILDHOME = $(CURDIR)/debian/build
PIDFILE   = $(BUILDHOME)/memcached.pid
WHOAMI    = $(shell whoami)

%:
	dh $@ --no-parallel

execute_after_dh_clean:
	$(RM) -r $(BUILDHOME)

execute_before_dh_auto_test:
	mkdir -p $(BUILDHOME)
	memcached -u $(WHOAMI) -P $(PIDFILE) -l 127.0.0.1 -d

execute_after_dh_auto_test:
	[ ! -s $(PIDFILE) ] || /bin/kill $$(cat $(PIDFILE))