File: rules

package info (click to toggle)
weka 3.6.14-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 112,968 kB
  • ctags: 32,453
  • sloc: java: 275,291; xml: 2,634; sh: 64; makefile: 28
file content (39 lines) | stat: -rwxr-xr-x 1,322 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
34
35
36
37
38
39
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

DEB_COMPRESS_EXCLUDE := .pdf
JAVA_HOME_DIRS       := /usr/lib/jvm/default-java
DEB_ANT_BUILDFILE    := build.xml
DEB_ANT_BUILD_TARGET := exejar docs
DEB_JARS             := cup JFlex

install/weka::
	install -m644 -D dist/weka.jar debian/weka/usr/share/java/weka-$(DEB_UPSTREAM_VERSION).jar
	dh_link -pweka /usr/share/java/weka-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/weka.jar

build/weka-doc:: debian/stamp-build-weka-doc
debian/stamp-build-weka-doc:
	( cd wekadocs/manual && \
	latex manual.tex ; latex manual.tex ; latex manual.tex ; \
	dvipdf manual.dvi )
	touch $@

install/weka-doc:: debian/stamp-install-weka-doc
debian/stamp-install-weka-doc:
	#main overview page
	install -m755 -d debian/weka-doc/usr/share/doc/weka-doc
	install -m644 documentation.css documentation.html weka.gif -t debian/weka-doc/usr/share/doc/weka-doc/
	#javadoc
	cp -r doc debian/weka-doc/usr/share/doc/weka-doc/
	#pdf's
	install -m644 wekadocs/manual/manual.pdf debian/weka-doc/usr/share/doc/weka-doc/WekaManual.pdf
	touch $@

cleanbuilddir::
	rm -f wekaexamples.zip.cdbs-config_list

get-orig-source:
	-uscan --force --verbose --no-symlink --download-version $(DEB_UPSTREAM_VERSION)
	@echo successfully retrieved upstream tarball