File: rules

package info (click to toggle)
webdis 0.1.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 580 kB
  • sloc: ansic: 5,250; sh: 254; python: 247; makefile: 90
file content (40 lines) | stat: -rwxr-xr-x 823 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
34
35
36
37
38
39
40
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
include /usr/share/dpkg/buildflags.mk
CFLAGS += $(CPPFLAGS)

export PREFIX = /usr

# Objects to be removed from build procedure
export HIREDIS_OBJ=
export JANSSON_OBJ=
export B64_OBJS=

export CFLAGS += -I. -Ihttp-parser
export LDFLAGS += -levent -pthread -lhiredis -ljansson -lb64

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C tests pubsub websocket

override_dh_auto_clean:
	$(MAKE) clean
	$(MAKE) -C tests clean
	rm -f debian/files
	dh_auto_clean

override_dh_auto_install:
	dh_auto_install
	rm debian/webdis/etc/webdis.prod.json

override_dh_auto_test:
ifneq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	@echo "Skipping check (disabled in DEB_BUILD_OPTIONS)."
else
	$(CURDIR)/debian/test.sh $(MAKE) test
endif