File: rules

package info (click to toggle)
libbioparser-dev 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,916 kB
  • sloc: cpp: 1,273; makefile: 13
file content (21 lines) | stat: -rwxr-xr-x 509 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

DEB_CMAKE_EXTRA_FLAGS = -Dbioparser_build_tests=ON

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -e -x; for f in obj-*/bin/*_test; do [ ! -x $$f ] || $$f; done
endif

execute_after_dh_install:
	mv debian/`dh_listpackages`/usr/lib/*/cmake debian/`dh_listpackages`/usr/share
	rm -rf debian/`dh_listpackages`/usr/lib
	find debian -name meson.build -delete