File: rules

package info (click to toggle)
bagel 0.0~git20170109-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 114,600 kB
  • sloc: cpp: 1,066,140; python: 1,424; ansic: 674; makefile: 237; php: 29; sh: 25
file content (38 lines) | stat: -rwxr-xr-x 825 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
37
38
#!/usr/bin/make -f
# -*- makefile -*-

export LIBS=-lblas -llapack -lpthread -lmpi

export CXXFLAGS=-g -O2 -DNDEBUG -DZDOT_RETURN

%:
	dh $@ --with autoreconf

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/src/testsuite

override_dh_auto_configure:
	dh_auto_configure -- 			\
		--datadir=/usr/share/bagel	\
		--libdir=/usr/lib/bagel		\
		--enable-static			\
		--disable-shared		\
		--with-boost			\
		--with-libxc=yes		\
		--with-mpi=openmpi		\
		--disable-scalapack		\
		--enable-smith

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

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	dh_auto_test
	mkdir -p $(CURDIR)/src/testsuite
	-(cd $(CURDIR)/src/testsuite; ../TestSuite --log_level=all)
endif

override_dh_installchangelogs:
	dh_installchangelogs -XChangeLog