File: rules

package info (click to toggle)
numericalchameleon 3.0.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 308 kB
  • sloc: java: 3,192; makefile: 13
file content (23 lines) | stat: -rwxr-xr-x 775 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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_OPTIONS=-v

JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/sugar.jar

%:
	dh $@ --with javahelper --source-directory=src/net/numericalchameleon/util/*

override_jh_build:

	javac -encoding UTF-8 src/net/numericalchameleon/util/phoneticalphabets/*.java -d ${CURDIR}/
	jar cvf ${CURDIR}/net/numericalchameleon/util/nc.jar net/numericalchameleon/util/phoneticalphabets/

	javac -encoding UTF-8 -classpath /usr/share/java/sugar.jar:net/numericalchameleon/util/nc.jar \
		src/net/numericalchameleon/util/spokennumbers/*.java -d ${CURDIR}/

	jar uvf ${CURDIR}/net/numericalchameleon/util/nc.jar net/numericalchameleon/util/spokennumbers/

	jh_build