File: rules

package info (click to toggle)
libjnr-posix-java 1.1.4~git1.8aa26268b-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 532 kB
  • sloc: java: 3,963; xml: 919; makefile: 41
file content (62 lines) | stat: -rwxr-xr-x 1,187 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
#!/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

MVN = mvn -s /etc/maven2/settings-debian.xml


build: build-stamp
build-stamp:
	dh_testdir

	$(MVN) verify
	$(MVN) javadoc:javadoc
	touch build-stamp

clean:
	dh_testdir
	dh_testroot

	rm -f build-stamp
	$(MVN) clean
	rm -rf debian/.mh/

	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.4.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