File: rules

package info (click to toggle)
brotli 0.5.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,544 kB
  • ctags: 1,731
  • sloc: ansic: 39,873; cpp: 834; python: 431; makefile: 65; sh: 57
file content (30 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
25
26
27
28
29
30
#!/usr/bin/make -f
#export DH_VERBOSE = 1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export PYBUILD_NAME = brotli

%:
	dh $@ --buildsystem=pybuild --with=python2 --with=python3

override_dh_auto_build:
	dh_auto_build
	make bro

BROTLI_CMD=brotli
override_dh_install:
	cp bin/bro bin/$(BROTLI_CMD)
	dh_install

override_dh_auto_clean:
	rm -f bin/$(BROTLI_CMD)
	dh_auto_clean

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	dh_auto_test
	debian/smoke_test.sh
	make test
endif