File: rules

package info (click to toggle)
gettext-ant-tasks 0.9.7%2Bsvn206-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 192 kB
  • ctags: 117
  • sloc: java: 789; xml: 43; makefile: 17
file content (30 lines) | stat: -rwxr-xr-x 946 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
23
24
25
26
27
28
29
30
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

FULLVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1 )
SVNREV  := $(shell echo $(FULLVER) | awk -F"[~+]svn" '{print $$2}' )

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant compile jar

override_dh_auto_install:
	dh_install -plibgettext-ant-tasks-java gettext-ant-tasks.jar /usr/share/java/
	dh_link -plibgettext-ant-tasks-java usr/share/java/gettext-ant-tasks.jar usr/share/java/gettext-ant-tasks-$(FULLVER).jar

override_dh_auto_clean:
	dh_auto_clean
	rm -rf target *.jar

get-orig-source:
	svn export -r $(SVNREV) http://gettext-commons.googlecode.com/svn/gettext-ant-tasks/trunk gettext-ant-tasks
	tar Jcf gettext-ant-tasks_$(FULLVER).orig.tar.xz --exclude .settings --exclude .classpath --exclude .project gettext-ant-tasks/
	rm -rf gettext-ant-tasks/