File: rules

package info (click to toggle)
rdp-alignment 1.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,060 kB
  • sloc: java: 3,043; xml: 1,403; ansic: 512; python: 511; makefile: 45; sh: 1
file content (35 lines) | stat: -rwxr-xr-x 1,136 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
#!/usr/bin/make -f

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

export CLASSPATH=/usr/share/jaba/jaxb-api.jar:/usr/share/java/jaxb-impl.jar:/usr/share/java/commons-cli.jar:/usr/share/java/commons-lang.jar:/usr/share/java/commons-io.jar:/usr/share/java/rdp-readseq.jar

%:
	dh $@ --with javahelper

override_dh_auto_clean:
	rm -rf lib build *.jar junit-tmp.xml TEST-*.xml
	find test -name '*.class' -delete

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cp debian/junit.xml ./junit-tmp.xml
	ant -f junit-tmp.xml junit
endif

override_dh_clean:
	dh_clean
	rm -f debian/manifest
	rm -f debian/*.log

override_dh_auto_build:
	#Ant is over-complicating things.  Do it the easy way.
	jh_build rdp-alignment.jar src
	cd src ; jar uf ../rdp-alignment.jar data
	#Also set the manifest like so
	echo usr/share/java/rdp-alignment.jar:    >debian/manifest
	printf '\tClass-Path: jaxb-api.jar jaxb-impl.jar commons-cli.jar commons-lang.jar commons-io.jar rdp-readseq.jar\n' >>debian/manifest
	printf '\tMain-Class: '`grep '^main.class=' nbproject/project.properties | cut -c 12-`'\n' >>debian/manifest