File: rules

package info (click to toggle)
libfastutil-java 7.0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,760 kB
  • ctags: 1,211
  • sloc: java: 12,408; sh: 638; makefile: 385; xml: 212
file content (43 lines) | stat: -rwxr-xr-x 1,240 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
38
39
40
41
42
43
#!/usr/bin/make -f

# DH_VERBOSE := 1

%:
	dh $@ --with javahelper --with jh_maven_repo_helper

override_dh_auto_clean:
	mkdir -p build
	dh_auto_clean
	rm -f fastutil-*.jar
	rm -rf build dist docs
	find src/it/unimi/dsi/fastutil -name "*.[ch]" -delete
	# delete auto-generated *.java files.
	# Attention: This
	# 	find src/it/unimi/dsi/fastutil -mindepth 2 -name "*.java" -delete
	# does not work because files in /io need to remain
	find \
		src/it/unimi/dsi/fastutil/booleans \
		src/it/unimi/dsi/fastutil/bytes \
		src/it/unimi/dsi/fastutil/chars \
		src/it/unimi/dsi/fastutil/doubles \
		src/it/unimi/dsi/fastutil/floats \
		src/it/unimi/dsi/fastutil/ints \
		src/it/unimi/dsi/fastutil/longs \
		src/it/unimi/dsi/fastutil/objects \
		src/it/unimi/dsi/fastutil/shorts \
		-name "*.java" -delete
	rm -f src/it/unimi/dsi/fastutil/io/BinIO.java src/it/unimi/dsi/fastutil/io/TextIO.java

override_dh_auto_build:
	make sources
	# make sources TEST=1		# will compile behavioral and speed tests into the classes
	# make sources ASSERTS=1	# will compile assertions into the classes
	ant jar
	ant javadoc

override_dh_builddeb:
	dh_builddeb -- -Z xz

get-orig-source:
	mkdir -p ../tarballs
	uscan --verbose --force-download --destdir ../tarballs