File: rules

package info (click to toggle)
libjcommon-java 1.0.23-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,344 kB
  • ctags: 4,193
  • sloc: java: 26,295; xml: 511; makefile: 22
file content (30 lines) | stat: -rwxr-xr-x 913 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
#!/usr/bin/make -f

export JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/junit.jar:/usr/share/java/servlet-api-3.1.jar
VERSION:=1.0.23

%:
	dh $@ --with maven_repo_helper --buildsystem=ant

override_dh_auto_build:
	ant -f ant/build.xml compile compile-xml javadoc
	bnd wrap --properties debian/jcommon.bnd --output debian/jcommon-$(VERSION).jar \
		jcommon-$(VERSION).jar

override_dh_auto_clean:
	$(RM) *.jar
	$(RM) lib/*.jar
	$(RM) debian/*.jar
	$(RM) -r build javadoc

override_dh_link:
	dh_link -plibjcommon-java /usr/share/java/jcommon-xml-$(VERSION).jar /usr/share/java/jcommon-xml.jar

get-orig-pom:
	mkdir -p debian/poms
	wget  -U NoSuchBrowser/1.0 -O debian/poms/jcommon.pom \
		https://oss.sonatype.org/content/repositories/releases/org/jfree/jcommon/$(VERSION)/jcommon-$(VERSION).pom

get-orig-source:
	uscan --download-current-version --force-download --repack --compression xz