File: rules

package info (click to toggle)
javacc5 5.0-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,540 kB
  • sloc: java: 21,302; xml: 2,025; sh: 100; makefile: 18
file content (25 lines) | stat: -rwxr-xr-x 584 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

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

override_dh_auto_build:
	dh_auto_build -- jar update-bootstrap -Dversion=$(DEB_VERSION_UPSTREAM)
	dh_auto_build -- clean
	dh_auto_build -- jar
	docbook-to-man debian/manpage.sgml >bin/javacc5.1

	cp bin/javacc  bin/javacc5
	cp bin/jjdoc   bin/jjdoc5
	cp bin/jjtree  bin/jjtree5

override_mh_install:
	mh_install
	rm -Rf debian/javacc5/usr/share/maven-repo/net/java/dev/javacc/javacc/5.0

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_build -- unittest
endif