File: rules

package info (click to toggle)
tiny-dnn 1.0.0a3%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,760 kB
  • sloc: cpp: 16,471; ansic: 11,829; lisp: 3,682; python: 3,422; makefile: 206
file content (24 lines) | stat: -rwxr-xr-x 475 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
#!/usr/bin/make -f

CMAKE_FLAGS = -DBUILD_DOCS=ON

ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	CMAKE_FLAGS += -DBUILD_TESTS=ON
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_FLAGS)

override_dh_auto_build:
	dh_auto_build
	dh_auto_build -- docs

override_dh_auto_test:
	dh_auto_test -- run_tests

override_dh_installdocs:
	dh_installdocs
	dh_installdocs -p tiny-dnn-doc --doc-main-package tiny-dnn debian/tmp/usr/share/tiny_dnn/doc/html