File: rules

package info (click to toggle)
mkl-dnn 0.17.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,948 kB
  • sloc: cpp: 101,438; ansic: 3,626; xml: 182; python: 112; makefile: 47; sh: 40
file content (33 lines) | stat: -rwxr-xr-x 787 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
32
33
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS   = hardening=+all
export DEB_CFLAGS_MAINT_APPEND   = -Wall #-pedantic
export DEB_CXXFLAGS_MAINT_APPEND = -Wall #-pedantic
export DEB_LDFLAGS_MAINT_APPEND  = -Wl,--as-needed

%:
	dh $@ -Scmake

override_dh_auto_configure:
	set -e; for item in $$(ls debian/*.install); do \
		sed -i -e "s@#DEB_HOST_MULTIARCH#@$(DEB_HOST_MULTIARCH)@g" $$item; \
		done
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DARCH_OPT_FLAGS=""

override_dh_auto_build-indep:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	dh_auto_build -- doc
endif

override_dh_auto_install-indep:
	:
override_dh_auto_test-indep:
	:

override_dh_missing:
	dh_missing --list-missing

override_dh_installdocs:
	dh_installdocs -A doc/legal_information.md
	-dh_doxygen