File: rules

package info (click to toggle)
tipp 1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 676 kB
  • sloc: java: 4,698; python: 1,892; xml: 62; makefile: 21
file content (34 lines) | stat: -rwxr-xr-x 902 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
#!/usr/bin/make -f

export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_configure:
	dh_auto_configure
	# Building the jar for tipp.
	cd tools/merge && \
	        CLASSPATH=/usr/share/java/jenkins-json-lib.jar:/usr/share/java/gson.jar ant -f tipp.xml
	# Creating the config files.
	BLAST="/usr/bin/blastn" python3 setup.py tipp

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -rf tools/bundled
	$(RM) -rf tools/merge/build
	$(RM) tipp.config
	find . -name "*.class" -delete
	find . -name "*.jar" -delete

override_dh_auto_install:
	dh_auto_install
	# Deleting upstream configuration file, which we are not packaging.
	$(RM) debian/tipp/usr/home.path

# Invoking dh_installman with --language=C to get "traditional" manpages
# although the files we put in /usr/bin end with ".py".
override_dh_installman:
	dh_installman --language=C