File: rules

package info (click to toggle)
libuv1 1.51.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,772 kB
  • sloc: ansic: 74,890; makefile: 676; python: 189; sh: 51; javascript: 18
file content (43 lines) | stat: -rwxr-xr-x 1,088 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/default.mk

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
DEB_BUILD_MAINT_OPTIONS=hardening=+all

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

export SOVER=1
export SONAME=libuv.so.$(SOVER)
export SOPKG=libuv$(SOVER)

# tell glibc to disable dns requests for the tests
export RES_OPTIONS = attempts:0

$(info "Note: Increasing timeout of time sensitive tests")
export UV_TEST_TIMEOUT_MULTIPLIER = 2

%:
	dh $@ --without autoreconf

# Testsuite is not robust enough, ignore errors on non-linux
override_dh_auto_test:
ifeq ($(DEB_BUILD_ARCH_OS),linux)
# tests fail if they are run in parallel
	dh_auto_test --no-parallel
else
	-dh_auto_test
endif

execute_before_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	sphinx-build -D html_theme=default docs/src/ $(CURDIR)/debian/libuv1-doc/usr/share/doc/libuv1/html
endif

execute_after_dh_installdocs-indep:
	rm -f $(CURDIR)/debian/libuv1-doc/usr/share/doc/libuv1-dev/code/.gitignore