File: rules

package info (click to toggle)
hsail-tools 0~20180830-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 12,380 kB
  • sloc: cpp: 17,707; perl: 5,123; sh: 81; makefile: 18
file content (23 lines) | stat: -rwxr-xr-x 596 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

%:
	dh $@ --parallel


override_dh_auto_configure:
ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
	@echo "package can be built for big-endian only"
	false
endif
	dh_auto_configure

override_dh_install:
	dh_install
	rm -rf debian/hsail-tools/usr/include
	rm -rf debian/hsail-tools/usr/lib
	if which help2man >/dev/null 2>&1; then \
	  help2man -N --name HSAILasm --help-option=-help --version-option=-version \
	    debian/hsail-tools/usr/bin/HSAILasm > debian/HSAILasm.1; \
	fi
	mkdir -p debian/hsail-tools/usr/share/man/man1
	cp debian/HSAILasm.1 debian/hsail-tools/usr/share/man/man1/.