File: rules

package info (click to toggle)
libconstantine-java 0.7-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 860 kB
  • ctags: 4,468
  • sloc: java: 5,562; ruby: 976; xml: 683; makefile: 41
file content (61 lines) | stat: -rwxr-xr-x 1,305 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
#!/usr/bin/make -f

# FIXME: support of DEB_BUILD_OPTIONS nocheck and nostrip

JAVA_DIR = usr/share/java
DOC_DIR = usr/share/doc/libconstantine-java-doc
PKG_BUILDDIR = debian/libconstantine-java
PKG_DOC_BUILDDIR = debian/libconstantine-java-doc

jarname = libconstantine-java
jarversion = 0.7

build: build-stamp
build-stamp:
	dh_testdir

	ant -Dlibs.junit_4.classpath=/usr/share/java/junit4.jar
	touch build-stamp

clean:
	dh_testdir
	dh_testroot

	rm -f build-stamp
	ant clean

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep

	dh_installdirs -p libconstantine-java $(JAVA_DIR)

	dh_install -p libconstantine-java dist/constantine.jar $(JAVA_DIR)
	mv $(PKG_BUILDDIR)/$(JAVA_DIR)/constantine.jar $(PKG_BUILDDIR)/$(JAVA_DIR)/$(jarname)-$(jarversion).jar
	dh_link -p libconstantine-java $(JAVA_DIR)/$(jarname)-$(jarversion).jar $(JAVA_DIR)/$(jarname).jar

	dh_installdirs -p libconstantine-java-doc $(DOC_DIR)
	mv dist/javadoc $(PKG_DOC_BUILDDIR)/$(DOC_DIR)


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