File: rules

package info (click to toggle)
apbs 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 73,764 kB
  • sloc: ansic: 42,451; xml: 14,086; sh: 10,668; python: 1,334; fortran: 995; f90: 948; cpp: 638; makefile: 473; objc: 448; awk: 266; sed: 205; csh: 79
file content (36 lines) | stat: -rwxr-xr-x 1,042 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
32
33
34
35
36
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/mpi-default-dev/debian_defaults

export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS   := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
export LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed

%:
	dh $@ --parallel

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=None -DCMAKE_SKIP_RPATH=On \
		-DBUILD_DOC=Off -DBUILD_TOOLS=Off \
		-DENABLE_OPENMP=On -DENABLE_MPI=On -DENABLE_ZLIB=On \
		-DENABLE_PYTHON=On -DENABLE_READLINE=Off \
		-DFETK_PATH=/usr -DENABLE_FETK=Off

override_dh_auto_install:
	dh_auto_install --destdir=$(CURDIR)/debian/tmp/

override_dh_clean:
	-(cd $(CURDIR)/build && /bin/bash cleanup.sh)
	dh_clean

override_dh_auto_test:
	-(cd tests; python apbs_tester.py -c test_cases.cfg)

override_dh_install:
	dh_install --sourcedir=$(CURDIR)/debian/tmp --list-missing

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog