File: rules

package info (click to toggle)
libmatio 1.5.30-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 34,656 kB
  • sloc: sh: 126,066; ansic: 22,630; makefile: 647; python: 215
file content (34 lines) | stat: -rwxr-xr-x 832 bytes parent folder | download | duplicates (3)
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
32
33
34
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=optimize=+lto

include /usr/share/dpkg/default.mk

ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
  WITH_HDF5:=--with-hdf5=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
else
  WITH_HDF5:=--with-hdf5
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(WITH_HDF5)

execute_after_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	make -C documentation pdf html MAKEINFOFLAGS=--no-split
endif

# See #1010202 and #1011805
override_dh_auto_test:
	HDF5_USE_FILE_LOCKING=FALSE dh_auto_test

execute_after_dh_auto_clean:
	rm -f documentation/matio_user_guide.pdf documentation/matio_user_guide.html \
		test/atconfig test/package.m4 test/testsuite
	rm -rf documentation/matio_user_guide.t2p/

override_dh_compress:
	dh_compress -X.pdf