File: rules

package info (click to toggle)
libjnr-posix-java 1.1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 784 kB
  • ctags: 1,509
  • sloc: java: 4,752; xml: 1,136; makefile: 45
file content (69 lines) | stat: -rwxr-xr-x 1,397 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

# FIXME: support of DEB_BUILD_OPTIONS nocheck and nostrip

JAVA_DIR = usr/share/java
DOC_DIR = usr/share/doc/libjnr-posix-java-doc
PKG_BUILDDIR = debian/libjnr-posix-java
PKG_DOC_BUILDDIR = debian/libjnr-posix-java-doc
M2_HOME = /usr/share/maven2/
MVN = $(M2_HOME)/bin/mvn -o -s /etc/maven2/settings-debian.xml


build-indep: build-stamp
build-stamp:
	dh_testdir

	$(MVN) verify
	$(MVN) javadoc:javadoc

	# Generate OSGi metadata
	bnd wrap -properties debian/jnr-posix.bnd -output target/jnr-posix-*.jar target/jnr-posix-*.jar

	touch build-stamp

build-arch:

build: build-arch build-indep

clean:
	dh_testdir
	dh_testroot

	rm -f build-stamp
	$(MVN) clean
	mh_clean
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep

	dh_installdirs -p libjnr-posix-java $(JAVA_DIR)

	mh_installjar -plibjnr-posix-java --java-lib --usj-name=jnr-posix pom.xml target/jnr-posix-1.1.8.jar
	mh_installpom -plibjnr-posix-java pom.xml

	dh_installdirs -p libjnr-posix-java-doc $(DOC_DIR)
	mv target/site/apidocs  $(PKG_DOC_BUILDDIR)/$(DOC_DIR)/javadoc


binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs --indep
	dh_installdocs --indep
	dh_compress --indep
	dh_fixperms --indep
	dh_installdeb --indep
	dh_gencontrol --indep
	dh_md5sums --indep
	dh_builddeb --indep

binary-arch:

binary: binary-indep binary-arch


.PHONY: build install clean binary-indep binary