File: rules

package info (click to toggle)
dune-grid 2.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,472 kB
  • sloc: cpp: 60,883; python: 1,438; perl: 191; makefile: 12; sh: 3
file content (23 lines) | stat: -rwxr-xr-x 835 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

include /usr/share/dune/dune-debian.mk

ifneq ("$(DEB_HOST_ARCH_BITS)", "64")
	# exclude test of reading binary gmsh files on non-64 bit machines
	# # Those files are written withe integer size 64bit but implementation
	# # throws because it only allows for reading 32bit integers
	export DUNE_CTEST_OPTIONS=-E "(gmsh4readertest|gmshtest-uggrid)"
endif

override_dh_install:
	# Manual delete runpath set by openmpi 5.0.5
	# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085509
	find debian/tmp/ -name \*.so -o  -name \*.so.\* -exec chrpath -d '{}' \; || true
	dh_install

override_dh_auto_test:
	dh_auto_build -- $(DUNE_TEST_BUILD_TARGETS)
	cd build; PATH=$(CURDIR)/debian/tmp-test:$$PATH $(DUNE_CTEST) $(DUNE_CTEST_OPTIONS) $(DUNE_TEST_CTEST_LABELS)

%:
	dh $@ --builddirectory=build --buildsystem=cmake