File: rules

package info (click to toggle)
grammatica 1.6%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,452 kB
  • sloc: java: 13,948; cs: 7,581; xml: 1,768; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 491 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
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_configure:
	cp build.xml debian/
	sed -i 's/"build.version" value="$${DSTAMP}"/"build.version" value="'${DEB_VERSION_UPSTREAM}'"/g' build.xml
	dh_auto_configure

override_dh_auto_test:
	ant test

override_dh_auto_install:
	dh_auto_install
	cd lib && ln -s grammatica-*.jar grammatica.jar

override_dh_auto_clean:
	-test -e debian/build.xml && mv debian/build.xml .
	rm -rf classes doc grammatica-*.zip lib