File: rules

package info (click to toggle)
jutils 20100502+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 428 kB
  • ctags: 223
  • sloc: java: 305; xml: 68; makefile: 20
file content (27 lines) | stat: -rwxr-xr-x 822 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
#!/usr/bin/make -f

NAME    := jutils
VERSION := $(shell dpkg-parsechangelog| sed -n '/^Version/{s/Version: \(.*\)-[0-9]*$$/\1/;s/+dfsg//p}')
CVSDATE := $(shell echo $(VERSION)|sed -n 's/\(....\)\(..\)\(..\)/\1-\2-\3/p')
TMPDIR  := tmp-orig-tar
TAR     := ../$(NAME)_$(VERSION)+dfsg.orig.tar.gz

export JAVA_HOME=/usr/lib/jvm/default-java

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant all
	ant javadoc

override_dh_auto_clean:
	dh_auto_clean

get-orig-source:
	-rm $(TAR)
	cvs -d :pserver:guest@cvs.dev.java.net:/cvs export -D $(CVSDATE) -d $(TMPDIR) $(NAME)
	echo "The following files will not be included in Debian tarball:"
	cd $(TMPDIR) && find . \( -name '*.class' -o -name '*.jar' \) -print
	cd $(TMPDIR) && ZIP=--best tar --exclude-vcs --exclude *.jar --exclude *.class -zcf $(TAR) .
	rm -rf $(TMPDIR)