File: rules

package info (click to toggle)
xhtmlrenderer 0.0~R8%2Bdfsg2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 11,292 kB
  • sloc: java: 46,036; xml: 1,518; makefile: 27; sh: 11
file content (37 lines) | stat: -rwxr-xr-x 862 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
32
33
34
35
36
37
#!/usr/bin/make -f

VERSION := $(shell dpkg-parsechangelog | grep ^Version: | sed 's/^.\+: \(.\+\)-.\+$$/\1/')
UPSTREAM_VERSION := $(shell echo $(VERSION) | sed 's/^0.0~//')
JARS := core-renderer core-renderer-minimal
export JAVA_HOME=/usr/lib/jvm/default-java

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant jar
	ant docs
	jh_classpath

override_dh_auto_clean:
	dh_auto_clean
	-rm -rf doc/full doc/user

override_dh_link:
	# provide compatibility with the versioning scheme used by upstream
	for jar in $(JARS); do \
		dh_link usr/share/java/$$jar.jar \
			usr/share/java/$$jar-$(UPSTREAM_VERSION).jar; \
	done

override_jh_classpath:
	# already called during build

get-orig-source:
	cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
	uscan \
		--verbose \
		--no-symlink \
		--destdir $(CURDIR)      \
		--watchfile debian/watch \
		--force-download