Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
6 %:
7 dh $@ --buildsystem=cmake
8
9 ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
10 CONFIGURE_FLAGS += -DJSONCPP_WITH_TESTS=OFF
11 endif
12
13 override_dh_auto_configure:
14 dh_auto_configure -- \
15 -DBUILD_STATIC_LIBS=ON \
16 -DBUILD_OBJECT_LIBS=OFF \
17 -DCMAKE_INSTALL_INCLUDEDIR=include/jsoncpp \
18 $(CONFIGURE_FLAGS)
19
20 override_dh_auto_test:
21 dh_auto_test --buildsystem=cmake --max-parallel=1
22
23 execute_after_dh_auto_build-indep:
24 ln -s obj-*/version .
25 python3 doxybuild.py --doxygen=/usr/bin/doxygen
26 rm version