File: rules

package info (click to toggle)
freefem++ 3.61.1+dfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 17,108 kB
  • sloc: cpp: 141,214; ansic: 28,664; sh: 4,925; makefile: 3,142; fortran: 1,171; perl: 844; awk: 290; php: 199; pascal: 41; f90: 32
file content (41 lines) | stat: -rwxr-xr-x 1,309 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
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_OPTIONS=-v

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

export OMPI_MCA_plm_rsh_agent=/bin/false  #workaround to start \
MPI-applications in chroot
  
override_dh_auto_clean:
	dh_auto_clean
	rm -rf examples++-mpi/*.so

override_dh_auto_configure:
	dh_auto_configure -- --disable-download --disable-hpddm \
			     CC="gcc $(LDFLAGS)" \
			     CXX="g++ $(LDFLAGS)" \
			     MPICXX="mpic++ $(LDFLAGS)"
			     --with-scotch-include=-I/usr/include/scotch \
			     --with-scotch-ldflags="-lscotch -lscotcherr"

override_dh_auto_install:
	dh_auto_install
	mv debian/tmp/usr/bin/bamg debian/tmp/usr/bin/ffbamg
	rdfind -outputname debian/results.txt -makesymlinks true debian/tmp/usr/bin/
	symlinks -r -s -c debian/tmp/usr/bin/

override_dh_auto_test:
#	$(MAKE) $(AM_MAKEFLAGS) -ik --trace --debug=v check