File: rules

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

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

%:
	dh $@

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