Fix use of CAMLparam etc macros.
[perl4caml.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9
10
11
12 CFLAGS = -Wall -g
13
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15         CFLAGS += -O0
16 else
17         CFLAGS += -O2
18 endif
19 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
20         INSTALL_PROGRAM += -s
21 endif
22
23 # shared library versions, option 1
24 version=2.0.5
25 major=2
26 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
27 #version=`ls src/.libs/lib*.so.* | \
28 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
29 #major=`ls src/.libs/lib*.so.* | \
30 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
31
32 configure: configure-stamp
33 configure-stamp:
34         dh_testdir
35         # Add here commands to configure the package.
36
37         touch configure-stamp
38
39
40 build: build-stamp
41 build-stamp: configure-stamp 
42         dh_testdir
43
44         # Add here commands to compile the package.
45         $(MAKE)
46
47         touch build-stamp
48
49 clean:
50         dh_testdir
51         dh_testroot
52         rm -f build-stamp configure-stamp
53
54         # Add here commands to clean up after the build process.
55         -$(MAKE) clean
56         -rm -rf html
57
58         dh_clean 
59
60 install: build
61         dh_testdir
62         dh_testroot
63         dh_clean -k 
64         dh_installdirs
65
66         # Add here commands to install the package into debian/tmp
67         $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
68         cd debian/tmp && find . -name ".arch-ids" -exec rm -rf {} \;
69
70
71 # Build architecture-independent files here.
72 binary-indep: build install
73 # We have nothing to do by default.
74
75 # Build architecture-dependent files here.
76 binary-arch: build install
77         dh_testdir
78         dh_testroot
79         dh_movefiles -a
80         dh_installchangelogs 
81         dh_installdocs
82         dh_installexamples
83 #       dh_install
84 #       dh_installmenu
85 #       dh_installdebconf       
86 #       dh_installlogrotate
87 #       dh_installemacsen
88 #       dh_installpam
89 #       dh_installmime
90 #       dh_installinit
91 #       dh_installcron
92 #       dh_installinfo
93         dh_installman
94         dh_link
95         # dh_strip is broken on this package!
96         #dh_strip
97         dh_compress
98         dh_fixperms
99 #       dh_perl
100 #       dh_python
101 #       dh_makeshlibs
102         dh_installdeb
103         dh_shlibdeps
104         dh_gencontrol
105         dh_md5sums
106         dh_builddeb
107
108 binary: binary-indep binary-arch
109 .PHONY: build clean binary-indep binary-arch binary install configure