File: rules

package info (click to toggle)
valijson 1.0.3%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,756 kB
  • sloc: cpp: 19,769; sh: 134; makefile: 24
file content (53 lines) | stat: -rwxr-xr-x 1,205 bytes parent folder | download | duplicates (3)
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
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/make -f
# -*- makefile -*-

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

include /usr/share/dpkg/architecture.mk

%:
	dh $@

# This is a header-only library. We only build the test suite. If we're not
# running the tests, there isn't anything to build

# >>>>>>>>>>>>>>>>>>>>>>>
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))

# We're testing stuff, so I build the tests

# The boost JSON parser is in boost>=1.75, but currently debian only has 1.74.
# So I disable that
override_dh_auto_configure:
	dh_auto_configure -- \
		-Dvalijson_INSTALL_HEADERS=ON \
		-Dvalijson_EXCLUDE_BOOST=ON \
		-Dvalijson_BUILD_TESTS=ON
override_dh_auto_test:
	cd obj-$(DEB_HOST_MULTIARCH) && ./test_suite

# >>>>>>>>>>>>>>>>>>>>>>>
else
# <<<<<<<<<<<<<<<<<<<<<<<

# Not testing stuff. I don't build anything
override_dh_auto_configure:
	dh_auto_configure -- \
		-Dvalijson_INSTALL_HEADERS=ON \
		-Dvalijson_EXCLUDE_BOOST=ON \
		-Dvalijson_BUILD_TESTS=OFF

override_dh_auto_build:
	true

override_dh_auto_test:
	true
endif
# <<<<<<<<<<<<<<<<<<<<<<<


# Everything is small. Compressing creates extra work for little benefit, so I
# don't do it
override_dh_compress:
	dh_compress -X.cpp -XREADME