File: rules

package info (click to toggle)
amdsmi 6.1.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,712 kB
  • sloc: cpp: 30,276; python: 15,627; ansic: 6,319; sh: 586; makefile: 14
file content (23 lines) | stat: -rwxr-xr-x 616 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
#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto

include /usr/share/dpkg/pkg-info.mk

CMAKE_FLAGS := -DENABLE_ESMI_LIB=ON
# ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# CMAKE_FLAGS += -DBUILD_TESTS=ON -DINSTALL_GTEST=OFF
# endif

%:
	dh $@ -Scmake --builddir=build

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_FLAGS)

override_dh_installman:
	txt2man -P amd-smi -s 1 -v "AMD System Management Interface" \
		-t "AMDSMI(1)" \
		-r amdsmi-$(DEB_VERSION_UPSTREAM) \
		$(CURDIR)/debian/amd-smi-help.txt > $(CURDIR)/debian/amd-smi.1
	dh_installman