File: rules

package info (click to toggle)
neobio 0.0.20030929-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 3,216 kB
  • sloc: java: 3,231; sh: 39; makefile: 19
file content (32 lines) | stat: -rwxr-xr-x 849 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 -*-

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

include /usr/share/dpkg/default.mk

%:
	dh $@ --with javahelper


override_dh_auto_build:
	mkdir -p classes
	javac -cp src -source 1.8 -target 1.8 -d  classes   $(shell find src -name "*.java")
	jar -cf neobio-$(DEB_VERSION_UPSTREAM).jar -C classes neobio -C bin neobio/gui/icons

override_dh_clean:
	rm -f neobio*.jar
	rm -rf classes
	dh_clean

override_dh_installdocs:
	dh_installdocs
	# remove sflogo which triggers privacy-breach-logo lintian error
	sed -i  -e 's#<IMG SRC="http://sourceforge.net/sflogo.php?.* ALT="\([^"]\+\)" />#\1#' \
		-e '/http:\/\/m1.nedstatbasic.net\//,/http:\/\/v1.nedstatbasic.net\//d' \
		debian/*/usr/share/doc/*/html/*.html \
		debian/*/usr/share/doc/*/html/*/*/*.html

get-orig-source:
	. debian/get-orig-source