~ubuntu-branches/ubuntu/trusty/ocamlagrep/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-05-18 16:48:03 UTC
  • mfrom: (3.1.3 dapper)
  • Revision ID: james.westby@ubuntu.com-20060518164803-ut9e5iaz6eblxvir
Tags: 1.0-8
* Rebuild with OCaml 3.09.2.
* Update standards version to 3.7.2, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Uncomment this to turn on verbose mode.
4
4
#export DH_VERBOSE=1
5
5
 
 
6
OCAMLABI := $(shell ocamlc -version)
 
7
OFILES := $(patsubst %.in,%,$(wildcard debian/*.in))
 
8
 
6
9
CFLAGS = -Wall -g
7
10
 
8
11
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
17
        INSTALL_PROGRAM += -s
15
18
endif
16
19
 
 
20
ocamlinit:
 
21
        for f in $(OFILES); do sed -e 's/#OCamlABI#/$(OCAMLABI)/g' $$f.in > $$f; done
 
22
 
17
23
configure: configure-stamp
18
24
configure-stamp:
19
25
        dh_testdir
20
26
 
21
27
        touch configure-stamp
22
28
 
23
 
build: build-stamp
24
 
build-stamp: configure-stamp 
 
29
build: ocamlinit build-stamp
 
30
build-stamp: configure-stamp
25
31
        dh_testdir
26
32
 
27
33
        $(MAKE) libagrep.a agrep.cma
32
38
clean:
33
39
        dh_testdir
34
40
        dh_testroot
 
41
 
35
42
        rm -f build-stamp configure-stamp
36
 
 
 
43
        rm -f libagrep-ocaml-dev.install libagrep-ocaml.install dirs
37
44
        -$(MAKE) clean
38
45
        rm -rf debian/doc
39
46
 
40
 
        dh_clean 
 
47
        dh_clean
41
48
 
42
49
install: build
43
50
        dh_testdir
44
51
        dh_testroot
45
 
        dh_clean -k 
 
52
        dh_clean -k
46
53
        dh_installdirs
47
54
 
48
55
        mkdir -p debian/tmp
59
66
binary-arch: build install
60
67
        dh_testdir
61
68
        dh_testroot
62
 
        dh_installchangelogs 
 
69
        dh_installchangelogs
63
70
        dh_installdocs
64
71
        dh_installexamples
65
72
        dh_install --sourcedir=debian/tmp --list-missing
71
78
        dh_makeshlibs
72
79
        dh_installdeb
73
80
        dh_shlibdeps
74
 
        dh_gencontrol
 
81
        dh_gencontrol -- -VF:OCamlABI="$(OCAMLABI)"
75
82
        dh_md5sums
76
83
        dh_builddeb
77
84
 
78
85
binary: binary-indep binary-arch
79
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
86
.PHONY: build clean binary-indep binary-arch binary install configure ocamlinit