File: rules

package info (click to toggle)
libapfloat-java 1.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,304 kB
  • sloc: java: 57,357; xml: 1,241; sh: 103; makefile: 13
file content (25 lines) | stat: -rwxr-xr-x 725 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
#!/usr/bin/make -f

%:
	dh $@ --with javahelper

execute_before_dh_auto_configure:
	# Introducing the listener artifact which will be the test listener for
	# apfloat
	cp -r debian/listener .

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# Running tests with --no-parallel as the .ap files they create will get
	# removed after each test.
	dh_auto_test --no-parallel
endif

execute_after_dh_auto_install:
	# Removing the "listener" jar and artifact from the binary package.
	rm -rf debian/libapfloat-java/usr/share/java/listener*.jar debian/libapfloat-java/usr/share/maven-repo/org/apfloat/listener

override_dh_clean:
	# Removing the listener artifact we settled there.
	-rm -rf listener
	dh_clean