File: rules

package info (click to toggle)
ergo 3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 17,396 kB
  • sloc: cpp: 94,740; ansic: 17,015; sh: 7,559; makefile: 1,402; yacc: 127; lex: 110; awk: 23
file content (32 lines) | stat: -rwxr-xr-x 772 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
#!/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 $@

override_dh_autoreconf:
	touch NEWS AUTHORS ChangeLog
	dh_autoreconf

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