File: rules

package info (click to toggle)
jaminid 0.99a-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,324 kB
  • ctags: 2,172
  • sloc: java: 1,341; makefile: 55
file content (69 lines) | stat: -rwxr-xr-x 1,823 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/make -f

include /usr/share/quilt/quilt.make

DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

build: build-arch-stamp build-indep-stamp
build-arch: build-arch-stamp
build-arch-stamp:
	dh_testdir
	touch $@

build-indep: build-indep-stamp $(QUILT_STAMPFN)
build-indep-stamp:
	dh_testdir
	jh_build jaminid.jar src
	touch $@

clean: unpatch
	dh_testdir
	dh_testroot
	jh_build --clean
	dh_clean
	rm -f build-arch-stamp build-indep-stamp jaminid.jar

install-indep: build-indep
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

binary-arch: build-arch
	# Java packages are arch: all, nothing to do here

binary-indep: build-indep install-indep
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_install -i
	dh_installdocs -i
	dh_installchangelogs -i
	dh_lintian -i
	dh_javadoc -i --sourcedir=src 
	jh_installlibs -i
	jh_depends -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary: binary-indep binary-arch

get-orig-source:
	svn export https://jaminid.svn.sourceforge.net/svnroot/jaminid/trunk/jaminid \
		$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) && \
	install /usr/share/common-licenses/LGPL-2.1 \
		$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)/LICENSE && \
	GZIP=--best tar czf $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
		$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) && \
	rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)

.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install-indep