File: rules

package info (click to toggle)
ganymed-ssh2 250-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 1,048 kB
  • ctags: 1,836
  • sloc: java: 12,959; makefile: 23; xml: 9
file content (32 lines) | stat: -rwxr-xr-x 693 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
#!/usr/bin/make -f

PKGNAME := ganymed-ssh2
LIBNAME := lib$(PKGNAME)-java
VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')


%:
	dh --with javahelper $@

override_dh_auto_build:
	jh_build $(PKGNAME).jar src

override_dh_auto_clean:
	jh_clean

override_dh_auto_install:
	dh_auto_install
	mh_installpom -p$(LIBNAME) $(CURDIR)/debian/pom.xml
	mh_installjar -p$(LIBNAME) -l $(CURDIR)/debian/pom.xml \
		$(CURDIR)/$(PKGNAME).jar

override_dh_installchangelogs:
	dh_installchangelogs HISTORY.txt

get-orig-source:
	uscan \
		--verbose \
		--no-symlink \
		--force-download \
		--destdir $(CURDIR)
	mv $(PKGNAME)-build$(VERSION).tar.gz $(PKGNAME)_$(VERSION).orig.tar.gz