File: rules

package info (click to toggle)
mrbayes 3.2.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,724 kB
  • ctags: 2,710
  • sloc: ansic: 91,371; sh: 181; makefile: 46
file content (41 lines) | stat: -rwxr-xr-x 1,021 bytes parent folder | download | duplicates (2)
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
# debian/rules for mrbayes
# Andreas Tille <tille@debian.org>
# GPL

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

%:
	dh $@ --sourcedirectory=src

override_dh_auto_configure:
	#Configure for MPI at first
	( cd src ; autoconf )
	dh_auto_configure -- --with-beagle=/usr --enable-mpi=yes --enable-debug=yes

override_dh_auto_clean:
	( cd src ; $(MAKE) -f Makefile.in distclean )
	rm -f src/configure
	rm -f mb mb-mpi src/mb

override_dh_auto_build:
	# build mb-mpi (from initial config)
	LIBS="-Wl,--as-needed" dh_auto_build
	mv src/mb ./mb-mpi
	# Now - build mb
	( cd src ; make clean )
	dh_auto_configure -- --with-beagle=/usr --enable-mpi=no --enable-debug=yes
	LIBS="-Wl,--as-needed" dh_auto_build
	mv src/mb .

override_dh_auto_install:
	echo "Do not try to install to /usr/local/bin"

override_dh_compress:
	dh_compress --exclude=.pdf

get-orig-source:
	# uscan is really calling get-orig-source script since it fetchs additional files from svn
	uscan --verbose --force-download