File: rules

package info (click to toggle)
apache-opennlp 2.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,772 kB
  • sloc: java: 80,146; xml: 73,649; sh: 237; makefile: 18
file content (24 lines) | stat: -rwxr-xr-x 815 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
#!/usr/bin/make -f

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

OPENNLP_MAVEN_DIR = debian/maven-repo/org/apache/opennlp/opennlp-tools/debian

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure
	mkdir --parents ${OPENNLP_MAVEN_DIR}
	test -e ${OPENNLP_MAVEN_DIR}/opennlp-tools-debian.pom || \
		ln -s ../../../../../../../opennlp-tools/pom.xml \
		${OPENNLP_MAVEN_DIR}/opennlp-tools-debian.pom
	test -e ${OPENNLP_MAVEN_DIR}/opennlp-tools-debian.jar || \
		ln -s ../../../../../../../opennlp-tools/target/opennlp-tools-$(DEB_VERSION_UPSTREAM).jar \
		${OPENNLP_MAVEN_DIR}/opennlp-tools-debian.jar

override_dh_installman:
	help2man debian/bin/opennlp --section=1 --no-info --no-discard-stderr \
		--version-string=$(DEB_VERSION_UPSTREAM) \
		--name='CLI interface to Apache OpenNLP' > debian/opennlp.1
	dh_installman