File: rules

package info (click to toggle)
ruby-hdfeos5 1.2-7
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,856 kB
  • ctags: 1,573
  • sloc: ansic: 13,294; ruby: 2,809; makefile: 18
file content (23 lines) | stat: -rwxr-xr-x 557 bytes parent folder | download | duplicates (2)
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

ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
  export HDF5_DIR := /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
else
  export HDF5_DIR := /usr
endif

ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/libhe5_hdfeos.so),)
  export HE5_HDF_LIBDIR := /usr/lib/$(DEB_HOST_MULTIARCH)/
else
  export HE5_HDF_LIBDIR := /usr
endif
export HE5_HDF_INCDIR := /usr/include/hdf-eos5

%:
	@echo $(HDF5_DIR)
	dh $@ --with ruby --buildsystem ruby --parallel

override_dh_auto_clean:
	dh_auto_clean
	rm -f *.he5
	rm -rf test-lib