File: rules

package info (click to toggle)
truffle-dsl-processor 0.6-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 888 kB
  • sloc: java: 12,718; xml: 37; makefile: 22
file content (31 lines) | stat: -rwxr-xr-x 902 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk

export CLASSPATH=/usr/share/java/truffle.jar

%:
	dh $@ --with javahelper

override_jh_build:
	jh_build --javacopts="-source 7" --javadoc-opts="-source 7"

override_jh_installlibs:
	mh_installpoms -plib$(DEB_SOURCE)-java
	mh_installjar  -plib$(DEB_SOURCE)-java -l debian/pom.xml $(DEB_SOURCE).jar

override_dh_clean:
	dh_clean
	mh_clean

V := $(DEB_VERSION_UPSTREAM)
MAVEN_ROOT := https://repo1.maven.org/maven2/com/oracle/$(DEB_SOURCE)

get-orig-pom:
	curl -L -o debian/pom.xml $(MAVEN_ROOT)/$(V)/$(DEB_SOURCE)-$(V).pom

get-orig-source:
	curl -L -O $(MAVEN_ROOT)/$(V)/$(DEB_SOURCE)-$(V)-sources.jar
	unzip -d $(DEB_SOURCE)-$(V).orig $(DEB_SOURCE)-$(V)-sources.jar
	GZIP=--best tar --numeric-owner --owner 0 --group 0 -zcf \
		$(DEB_SOURCE)_$(V).orig.tar.gz $(DEB_SOURCE)-$(V).orig
	-rm -rf $(DEB_SOURCE)-$(V).orig $(DEB_SOURCE)-$(V)-sources.jar