File: rules

package info (click to toggle)
bagel 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 134,868 kB
  • sloc: cpp: 1,236,565; python: 1,461; ansic: 674; makefile: 253; sh: 106
file content (45 lines) | stat: -rwxr-xr-x 1,229 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
39
40
41
42
43
44
45
#!/usr/bin/make -f
# -*- makefile -*-

export LIBS=-lblas -llapack -lpthread

export CXXFLAGS=-g1 -O2 -DNDEBUG -DZDOT_RETURN

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
B_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)

%:
	dh $@ --max-parallel=1 --with autoreconf

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

override_dh_auto_configure:
	if [ -f /proc/meminfo ]; then cat /proc/meminfo; fi
	dh_auto_configure -- 			\
		--datadir=/usr/share/bagel	\
		--libdir=/usr/lib/bagel		\
		--enable-static			\
		--disable-shared		\
		--with-boost			\
		--with-boost-libdir=$(B_LIBDIR)	\
		--with-libxc=yes		\
		--with-mpi=openmpi		\
		--disable-scalapack		\
		--enable-smith

override_dh_auto_install:
	dh_auto_install --destdir=$(CURDIR)/debian/tmp
	(cd docs; cp -a _static _images searchindex.js $(CURDIR)/debian/bagel/usr/share/doc/bagel/html)
	(cd docs; cp --parents `find -name \*.html*` $(CURDIR)/debian/bagel/usr/share/doc/bagel/html)

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