File: rules

package info (click to toggle)
libjsoncpp 1.7.4-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,736 kB
  • ctags: 1,164
  • sloc: cpp: 8,047; python: 1,556; ansic: 170; makefile: 47; sh: 33
file content (31 lines) | stat: -rwxr-xr-x 698 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
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@ --parallel --buildsystem=cmake

ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CONFIGURE_FLAGS += -DJSONCPP_WITH_TESTS=Off
endif

override_dh_auto_configure:
	dh_auto_configure -- \
			-DBUILD_SHARED_LIBS=ON \
			-DBUILD_STATIC_LIBS=ON \
			-DJSONCPP_WITH_CMAKE_PACKAGE=ON \
			-DLIB_SUFFIX="/$(DEB_TARGET_MULTIARCH)" \
			-DINCLUDE_INSTALL_DIR=/usr/include/jsoncpp \
			$(CONFIGURE_FLAGS)

override_dh_auto_build-indep:
	python doxybuild.py --doxygen=/usr/bin/doxygen

override_dh_makeshlibs:
	dh_makeshlibs -V "libjsoncpp1 (>= 1.7.4)"

override_dh_auto_clean:
	dh_auto_clean
	rm -rf dist
	rm -f devtools/*.pyc
	rm -f doc/doxyfile
	rm -f doc/*.db