]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/lablgtkmathview/debian/rules
Bug fixed: wrong exception was raised (instead of returning false)
[helm.git] / helm / DEVEL / lablgtkmathview / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 TARGETDIR = debian/tmp
9 OCAML_STDLIB_DIR = $(shell ocamlc -where)
10
11 configure: configure-stamp
12 configure-stamp:
13         dh_testdir
14         ./configure
15
16         touch configure-stamp
17
18 build: configure-stamp build-stamp
19 build-stamp:
20         dh_testdir
21
22         $(MAKE)
23         if [ -x /usr/bin/ocamlopt ]; then $(MAKE) opt; else true; fi
24
25         touch build-stamp
26
27 clean:
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp configure-stamp
31
32         -$(MAKE) distclean
33
34         dh_clean
35
36 install: build
37         dh_testdir
38         dh_testroot
39         dh_clean -k
40         dh_installdirs
41
42         mkdir -p $(TARGETDIR)$(OCAML_STDLIB_DIR)
43         $(MAKE) install PREFIX=$(TARGETDIR)$(OCAML_STDLIB_DIR)
44
45 binary-arch: build install
46         dh_install
47         dh_testdir
48         dh_testroot
49         dh_installdocs
50         dh_installexamples
51         dh_installman
52         dh_installinfo
53         dh_installchangelogs ChangeLog
54         dh_link
55         dh_strip
56         dh_compress
57         dh_fixperms
58         dh_installdeb
59         dh_shlibdeps
60         dh_gencontrol
61         dh_md5sums
62         dh_builddeb
63
64 binary: binary-arch
65 .PHONY: build clean binary-arch binary install configure