File: rules

package info (click to toggle)
dbus-java 2.8-9
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,336 kB
  • sloc: java: 11,718; makefile: 289; sh: 35
file content (47 lines) | stat: -rwxr-xr-x 1,211 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
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

# Rules file to build dbus-java packages by Matthew Johnson
#

JAVA_HOME=/usr/lib/jvm/default-java

%:
	dh $@ --with javahelper

VERSION=$(shell dpkg-parsechangelog | sed -n '/^Version/s/Version: \(.*\)-[^-]*$$/\1/p')

override_dh_auto_build:
	# Add here commands to compile the package.
	$(MAKE) DEBUG=disable \
		JCFLAGS="-source 1.7 -target 1.7 -O -encoding UTF-8" \
		PREFIX=/usr \
		JAVA_HOME=${JAVA_HOME}/bin/ \
		JAVAC=${JAVA_HOME}/bin/javac \
		JAVA=${JAVA_HOME}/bin/java \
		JAR=${JAVA_HOME}/bin/jar \
		JAVADOC="${JAVA_HOME}/bin/javadoc -link /usr/share/doc/default-jdk-doc/api" \
		bin
	touch $@

override_dh_auto_test:
	# Do nothing here to prevent a FTBFS

override_dh_auto_clean:
	# Add here commands to clean up after the build process.
	$(MAKE) clean
	rm -f override_dh_auto_build

override_dh_auto_install:
	$(MAKE) DEBUG=disable \
		DESTDIR=$(CURDIR)/debian/tmp \
		PREFIX=/usr \
		install install-man

override_dh_install:
	dh_install -i --sourcedir=debian/tmp
override_jh_manifest:
	jh_manifest -plibdbus-java -c"unix.jar hexdump.jar"
	jh_manifest -pdbus-java-bin -c"dbus-$(VERSION).jar"
override_jh_depends:
	jh_depends -pdbus-java-bin -jopen
	jh_depends -plibdbus-java