Rev 2 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 3 | ||
---|---|---|---|
1 | #!/usr/bin/make -f |
1 | #!/usr/bin/make -f |
2 | # -*- makefile -*- |
2 | # -*- makefile -*- |
3 | 3 | ||
4 | parallel = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
4 | parallel = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
5 | ifneq (,$(parallel)) |
5 | ifneq (,$(parallel)) |
6 | jobsflag = -j$(parallel) |
6 | jobsflag = -j$(parallel) |
7 | endif |
7 | endif |
8 | export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) |
8 | export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) |
9 | export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed |
9 | export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed |
10 | 10 | ||
11 | clean: |
11 | clean: |
12 | dh_testdir |
12 | dh_testdir |
13 | dh_testroot |
13 | dh_testroot |
14 | rm -f build-stamp |
14 | rm -f build-stamp |
15 | 15 | ||
16 | [ ! -f Makefile ] || $(MAKE) distclean |
16 | [ ! -f Makefile ] || $(MAKE) distclean |
17 | dh_clean |
17 | dh_clean |
18 | 18 | ||
19 | build: build-arch build-indep |
19 | build: build-arch build-indep |
20 | build-indep: |
20 | build-indep: |
21 | $(MAKE) doc zxidjava.jar PD2TEX_PL=debian/pd2tex |
21 | $(MAKE) doc zxidjava.jar PD2TEX_PL=debian/pd2tex |
22 | 22 | ||
23 | build-arch: |
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)" |
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 |
25 | touch build-stamp |
26 | 26 | ||
27 | install: |
27 | install: |
28 | $(MAKE) install_nodep samlmod_install perlzxid_install phpzxid_install DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr V=1 |
28 | $(MAKE) install_nodep samlmod_install perlzxid_install phpzxid_install DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr V=1 |
29 | 29 | ||
30 | # Build architecture-dependent files here. |
30 | # Build architecture-dependent files here. |
31 | build-arch: build |
31 | build-arch: build |
32 | binary-arch: build-arch install |
32 | binary-arch: build-arch install |
33 | dh_testdir |
33 | dh_testdir |
34 | dh_testroot |
34 | dh_testroot |
35 | dh_install -a |
35 | dh_install -a |
36 | dh_link -a |
36 | dh_link -a |
37 | dh_installchangelogs -a Changes |
37 | dh_installchangelogs -a Changes |
38 | dh_installdocs -a |
38 | dh_installdocs -a |
39 | dh_installexamples -a |
39 | dh_installexamples -a |
40 | dh_installinfo -a |
40 | dh_installinfo -a |
41 | dh_installman -a |
41 | dh_installman -a |
42 | dh_strip -a |
42 | dh_strip -a |
43 | dh_perl -a |
43 | dh_perl -a |
44 | dh_apache2 -a |
44 | dh_apache2 -a |
45 | dh_php5 -a |
45 | dh_php5 -a |
46 | dh_compress -a |
46 | dh_compress -a |
47 | dh_fixperms -a |
47 | dh_fixperms -a |
48 | dh_makeshlibs -a -V |
48 | dh_makeshlibs -a -V |
49 | dh_installdeb -a |
49 | dh_installdeb -a |
50 | dh_shlibdeps -a |
50 | dh_shlibdeps -a |
51 | dh_gencontrol -a |
51 | dh_gencontrol -a |
52 | dh_md5sums -a |
52 | dh_md5sums -a |
53 | dh_builddeb -a |
53 | dh_builddeb -a |
54 | 54 | ||
55 | build-indep: build |
55 | build-indep: build |
56 | binary-indep: build-indep |
56 | binary-indep: build-indep |
57 | dh_testdir |
57 | dh_testdir |
58 | dh_testroot |
58 | dh_testroot |
59 | dh_install -i |
59 | dh_install -i |
60 | dh_link -i |
60 | dh_link -i |
61 | dh_installchangelogs -i Changes |
61 | dh_installchangelogs -i Changes |
62 | dh_installdocs -i |
62 | dh_installdocs -i |
63 | dh_installexamples -i |
63 | dh_installexamples -i |
64 | dh_installinfo -i |
64 | dh_installinfo -i |
65 | dh_installman -i |
65 | dh_installman -i |
66 | dh_compress -i |
66 | dh_compress -i |
67 | dh_fixperms -i |
67 | dh_fixperms -i |
68 | dh_installdeb -i |
68 | dh_installdeb -i |
69 | dh_shlibdeps -i |
69 | dh_shlibdeps -i |
70 | dh_gencontrol -i |
70 | dh_gencontrol -i |
71 | dh_md5sums -i |
71 | dh_md5sums -i |
72 | dh_builddeb -i |
72 | dh_builddeb -i |
73 | 73 | ||
74 | binary: binary-arch binary-indep |
74 | binary: binary-arch binary-indep |
75 | .PHONY: build build-indep build-arch clean clean-patched binary-indep binary-arch binary install |
75 | .PHONY: build build-indep build-arch clean clean-patched binary-indep binary-arch binary install |