File: rules

package info (click to toggle)
ergo 3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 17,044 kB
  • ctags: 6,813
  • sloc: cpp: 91,488; ansic: 15,728; sh: 6,416; makefile: 1,287; yacc: 123; lex: 108
file content (28 lines) | stat: -rwxr-xr-x 723 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
#!/usr/bin/make -f
# -*- makefile -*-

#export CC  ?= mpicc
#export CXX ?= mpic++
export CPPFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS   ?= $(shell dpkg-buildflags --get CFLAGS) -fopenmp
export CXXFLAGS ?= $(shell dpkg-buildflags --get CXXFLAGS) -fopenmp
export LDFLAGS  ?= -fopenmp $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed

%:
	dh $@ --with autotools_dev

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	-dh_auto_test
endif

override_dh_auto_clean:
	dh_auto_clean
	$(RM) test/*.bin test/ergoscf.out*

override_dh_auto_install:
	dh_auto_install
	$(RM) $(CURDIR)/debian/ergo/usr/bin/test

override_dh_installchangelogs:
	dh_installchangelogs ergo_release_notes_*.txt