File: rules

package info (click to toggle)
service-wrapper-java 3.5.3%2Brepack-0%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,308 kB
  • sloc: sh: 29,865; ansic: 17,338; java: 11,392; xml: 2,417; makefile: 95; cpp: 32
file content (119 lines) | stat: -rwxr-xr-x 2,905 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/usr/bin/make -f

DH_VERBOSE=1
DEB_HOST_ARCH     := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
CLASSPATH         := /usr/share/java/junit4.jar:/usr/share/java/junit.jar:/usr/share/java/commons-collections.jar
JAVA_HOME         := /usr/lib/jvm/default-java
export CLASSPATH
export JAVA_HOME

#DEB_DESTDIR=debian/acgvision-agent

build: build-arch-stamp build-indep-stamp
	dh_testdir
	if test i386 = $(DEB_HOST_ARCH_CPU); then \
                make -f Makefile-linux-x86-32.make -C src/c; fi
	if test amd64 = $(DEB_HOST_ARCH_CPU); then \
                make -f Makefile-linux-x86-64.make -C src/c; fi
	if test ia64 = $(DEB_HOST_ARCH_CPU); then \
                make -f Makefile-linux-ia-64.make -C src/c; fi
	if test powerpc = $(DEB_HOST_ARCH_CPU); then \
                make -f Makefile-linux-ppc-32.make -C src/c; fi
	jh_build

build-arch: build-arch-stamp
build-arch-stamp:
	dh_testdir
	if test i386 = $(DEB_HOST_ARCH_CPU); then \
                make -f Makefile-linux-x86-32.make -C src/c; fi
	if test amd64 = $(DEB_HOST_ARCH_CPU); then \
                make -f Makefile-linux-x86-64.make -C src/c; fi
	if test ia64 = $(DEB_HOST_ARCH_CPU); then \
                make -f Makefile-linux-ia-64.make -C src/c; fi
	if test powerpc = $(DEB_HOST_ARCH_CPU); then \
                make -f Makefile-linux-ppc-32.make -C src/c; fi
	BUILD_DIR=lib /bin/sh $(CURDIR)/debian/build-wrapper-scripts /usr/share/wrapper/daemon.sh /usr/sbin/wrapper
	touch $@

build-indep: build-indep-stamp
build-indep-stamp:
	dh_testdir
	# Build the package
	jh_build
	touch $@

clean:
	dh_testdir
	dh_testroot
	jh_build --clean
	rm -f lib/*.jar
	rm -f lib/*.so
	rm -f lib/*.sh
	rm -f src/c/*.o
	rm -f bin/wrapper
	dh_clean

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

binary-arch: build-arch
	# Create the package here
	dh_testdir
	dh_testroot
	dh_prep -k
	dh_install -a
	#jh_installlibs wrapper.jar -plibservice-wrapper-java
	dh_installdocs -a
	dh_installchangelogs -a
	dh_installman debian/wrapper.1
	#jh_depends
	dh_link -a
	dh_strip -a
	#Depends
	dh_shlibdeps -a
	#Compress
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a


binary-indep: build-indep install-indep
	# Create the package here
	dh_testdir
	dh_testroot -i
	dh_prep -k
	dh_install -i
	jh_installlibs wrapper.jar -plibservice-wrapper-java
	dh_installdocs -i
	dh_installchangelogs -i
	jh_depends -i
	dh_link -i
	dh_strip -i
	#Depends
	dh_shlibdeps -i
	#Compress
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i


post-clean:
	jh_build --clean
	rm -f lib/*.jar
	rm -f lib/*.so
	rm -f src/c/*.o
	rm -f bin/wrapper
	dh_clean

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