File: rules

package info (click to toggle)
mhap 2.1.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 676 kB
  • sloc: java: 8,095; makefile: 166; xml: 140; python: 33
file content (34 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

#DH_VERBOSE = 1

include /usr/share/dpkg/default.mk

export LC_ALL=C.UTF-8
export JAVA_HOME=/usr/lib/jvm/default-java
DEB_VERSION_UPSTREAM := $(DEB_VERSION_UPSTREAM:+dfsg=)

cupboard = \
 commons-compress \
 fastutil \
 guava \
 jaligner \
 ssw \

CLASSPATH = $(foreach jar,$(strip $(cupboard)),/usr/share/java/$(jar).jar)

%: %.in
	sed \
	-e 's|@DEB_VERSION_UPSTREAM@|$(DEB_VERSION_UPSTREAM)|g' \
	-e 's|@CLASSPATH@|$(CLASSPATH)|g' \
	$< > $@

%:
	dh $@ --with javahelper --buildsystem=maven

override_dh_auto_build: debian/manifest debian/links
	dh_auto_build

override_dh_clean:
	dh_clean
	$(RM) debian/manifest debian/links