File: rules

package info (click to toggle)
concurrentqueue 1.0.4%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,656 kB
  • sloc: cpp: 37,309; makefile: 99; ansic: 67; python: 46; sh: 11
file content (31 lines) | stat: -rwxr-xr-x 862 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
#!/usr/bin/make -f
export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=cmake

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C build

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	echo | build/bin/unittests
endif

execute_after_dh_install:
	find debian/ -name LICENSE.md -delete

execute_after_dh_installexamples:
	sed -i \
	    -e 's#\.\./\(.*concurrentqueue.h\)#concurrentqueue/moodycamel/\1#' \
	    debian/*/usr/share/doc/`dh_listpackages`/examples/c_api/*.cpp
	sed -i \
	    -e 's#\.\./\.\./c_api#../c_api#' \
	    -e 's#\.\./\.\./\(.*concurrentqueue.h\)#concurrentqueue/moodycamel/\1#' \
	    debian/*/usr/share/doc/`dh_listpackages`/examples/unittests/*.cpp

override_dh_auto_clean:
	rm -f build/bin/unittests build/bin/libtbb.a build/bin/fuzztests build/bin/benchmarks fuzztests.log