File: rules

package info (click to toggle)
javacc4 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 2,448 kB
  • ctags: 1,542
  • sloc: java: 16,340; xml: 542; sh: 25; makefile: 20
file content (33 lines) | stat: -rwxr-xr-x 737 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
31
32
33
#!/usr/bin/make -f

VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')

%:
	dh $@ --with maven-repo-helper

override_dh_auto_build:
	mkdir -p bootstrap

	# Build with JavaCC 5
	cp /usr/share/java/javacc.jar bootstrap/
	dh_auto_build -- jar -Dversion=$(VERSION)

	# Rebuild with JavaCC 4
	cp bin/lib/javacc.jar bootstrap/
	dh_auto_build -- realclean
	dh_auto_build -- jar

	docbook-to-man debian/manpage.sgml >bin/javacc4.1

	cp bin/javacc  bin/javacc4
	cp bin/jjdoc   bin/jjdoc4
	cp bin/jjtree  bin/jjtree4

override_dh_auto_test:
	dh_auto_build -- test

override_dh_auto_clean:
	dh_auto_build -- realclean

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