File: rules

package info (click to toggle)
cub 1.17.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,444 kB
  • sloc: cpp: 1,833; sh: 67; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 729 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
#!/usr/bin/make -f

%:
	dh $@ --without single-binary

# the cmake build system for examples and tests assumes CUDA availability
override_dh_auto_configure:
	dh_auto_configure -- \
		-DCUB_ENABLE_HEADER_TESTING=OFF \
		-DCUB_ENABLE_TESTING=OFF \
		-DCUB_ENABLE_EXAMPLES=OFF \
		-Wno-dev

# for debhelper-compat (<< 15)
override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp

execute_after_dh_auto_install:
	# remove empty directories
	find debian/tmp -depth -type d -exec sh -c 'd="{}"; rmdir --ignore-fail-on-non-empty "$$d" ; test -d "$$d" || echo "removed $$d"' \;

override_dh_installexamples:
	dh_installexamples -X.gitignore


debian/tests/control: debian/tests/control.sh
	sh $< > $@

clean: debian/tests/control