File: rules

package info (click to toggle)
jmdns 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 512 kB
  • ctags: 850
  • sloc: java: 5,654; xml: 98; makefile: 54
file content (85 lines) | stat: -rwxr-xr-x 1,997 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/make -f
#
# Sample debian/rules that uses javahelper.
# This file was generated by jh_makepkg and may be used
# without restriction. It was inspired by the dh-make
# sample debian/rules

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#include /usr/share/cdbs/1/rules/debhelper.mk

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

VER_FULL = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d-)

UPSTREAM_SRC = jmdns-$(VER_FULL)
DEBIAN_SRC_DIR = jmdns-$(VER_FULL)
DEBIAN_SRC_TAR = jmdns_$(VER_FULL).orig.tar.gz

# Put depended upon jars in here
# export CLASSPATH=

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

build-indep: build-indep-stamp
build-indep-stamp:
	dh_testdir
	# Build the package
	jh_build jmdns.jar src
	touch $@

clean:
	dh_testdir
	dh_testroot
	jh_build --clean
	dh_clean
	rm -f build-arch-stamp build-indep-stamp jmdns*.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
	# Create the package here
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_install -i
	dh_installdocs -i
	dh_installchangelogs -i CHANGELOG.txt
	dh_javadoc -Nlibjmdns-java -plibjmdns-java-doc -i --sourcedir=src 
	jh_installlibs -i
	jh_manifest -i
	jh_depends -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

$(UPSTREAM_SRC).zip:
	wget http://voxel.dl.sourceforge.net/sourceforge/jmdns/$@

get-orig-source: $(UPSTREAM_SRC).zip
	unzip -q $(UPSTREAM_SRC).zip
	# Also remove pre-generated Javadoc
	rm -rf $(UPSTREAM_SRC)/docs/
	# Remove pre-generated jar file:
	rm -rf $(UPSTREAM_SRC)/lib/jmdns.jar
	GZIP=-9 tar czf $(DEBIAN_SRC_TAR) $(DEBIAN_SRC_DIR)
	rm -rf $(UPSTREAM_SRC)


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