File: rules

package info (click to toggle)
apache-curator 2.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 5,924 kB
  • sloc: java: 38,526; xml: 1,337; sh: 40; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

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

%:
	dh $@ --buildsystem=maven

override_dh_auto_build:
	# Regenerate the Java classes from the Thrift files
	sed -i 's/^namespace java.swift/\/\/namespace java.swift/g' curator-x-rpc/src/main/thrift/curator.thrift
	cd curator-x-rpc/src/main/scripts && bash apply-thrift.sh java

	dh_auto_build

override_dh_auto_clean:
	sed -i 's/\/\/namespace/namespace/g' curator-x-rpc/src/main/thrift/curator.thrift
	dh_auto_clean

get-orig-source:
	uscan --download-current-version --force-download --no-symlink