Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 magnus 1
#!/usr/bin/make -f
2
# -*- makefile -*-
3
 
4
parallel = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
5
ifneq (,$(parallel))
6
jobsflag = -j$(parallel)
7
endif
8
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
9
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
10
 
11
clean:
12
	dh_testdir
13
	dh_testroot
14
	rm -f build-stamp
15
 
16
	[ ! -f Makefile ] || $(MAKE) distclean
17
	dh_clean
18
 
19
build: build-arch build-indep
20
build-indep:
21
	$(MAKE) doc zxidjava.jar PD2TEX_PL=debian/pd2tex
22
 
23
build-arch:
24
	CDEF='-DZXID_CONF_PATH=\"/etc/zxid.conf\" -DZXID_PATH=\"/var/lib/zxid\"' $(MAKE) $(jobsflag) all SHARED=1 V=1 JNI_INC='-I/usr/lib/jvm/default-java/include' SERVLET_PATH='/usr/share/java/servlet-api-3.0.jar' OPTIMIZE="-O2 -g -Wall" LD_RUN_PATH="" OTHERLDFLAGS="$(LDFLAGS)"
25
	touch build-stamp
26
 
27
install:
28
	$(MAKE) install_nodep samlmod_install perlzxid_install phpzxid_install DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr V=1
29
 
30
# Build architecture-dependent files here.
31
build-arch: build
32
binary-arch: build-arch install
33
	dh_testdir
34
	dh_testroot
35
	dh_install -a
36
	dh_link -a
37
	dh_installchangelogs -a Changes
38
	dh_installdocs -a
39
	dh_installexamples -a
40
	dh_installinfo -a
41
	dh_installman -a
42
	dh_strip -a
43
	dh_perl -a
44
	dh_apache2 -a
45
	dh_php5 -a
46
	dh_compress -a
47
	dh_fixperms -a
48
	dh_makeshlibs -a -V
49
	dh_installdeb -a
50
	dh_shlibdeps -a
51
	dh_gencontrol -a
52
	dh_md5sums -a
53
	dh_builddeb -a
54
 
55
build-indep: build
56
binary-indep: build-indep
57
	dh_testdir
58
	dh_testroot
59
	dh_install -i
60
	dh_link -i
61
	dh_installchangelogs -i Changes
62
	dh_installdocs -i
63
	dh_installexamples -i
64
	dh_installinfo -i
65
	dh_installman -i
66
	dh_compress -i
67
	dh_fixperms -i
68
	dh_installdeb -i
69
	dh_shlibdeps -i
70
	dh_gencontrol -i
71
	dh_md5sums -i
72
	dh_builddeb -i
73
 
74
binary: binary-arch binary-indep
75
.PHONY: build build-indep build-arch clean clean-patched binary-indep binary-arch binary install