~ubuntu-branches/ubuntu/jaunty/menhir/jaunty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-07-11 12:26:18 UTC
  • Revision ID: james.westby@ubuntu.com-20060711122618-7a5i5hhkld8cniun
Tags: 20060615.dfsg-2
* Correctly set PREFIX when building, closes: #378260.
* Added bashim.dpatch to remove bashisms, closes: #377803.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# This file was originally written by Joey Hess and Craig Small.
 
5
# As a special exception, when this file is copied by dh-make into a
 
6
# dh-make output file, you may use that output file without restriction.
 
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
 
 
12
# Include dpatch stuff.
 
13
include /usr/share/dpatch/dpatch.make
 
14
 
 
15
DESTDIR := $(CURDIR)/debian/menhir
 
16
 
 
17
build: build-stamp
 
18
build-stamp: patch-stamp
 
19
        dh_testdir
 
20
        if [ -e /usr/bin/ocamlopt ]; then \
 
21
                $(MAKE) menhir PREFIX=/usr; \
 
22
        else \
 
23
                $(MAKE) menhir.byte PREFIX=/usr; \
 
24
                mv menhir.byte menhir; \
 
25
        fi
 
26
        touch build-stamp
 
27
 
 
28
clean: unpatch
 
29
        dh_testdir
 
30
        dh_testroot
 
31
        rm -f build-stamp configure-stamp
 
32
 
 
33
        -$(MAKE) clean
 
34
 
 
35
        dh_clean
 
36
 
 
37
install: build
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        dh_clean -k
 
41
        dh_installdirs
 
42
 
 
43
#       $(MAKE) install PREFIX=$(CURDIR)/debian/menhir/usr
 
44
        cp menhir $(DESTDIR)/usr/bin/
 
45
        cp standard.mly $(DESTDIR)/usr/share/menhir/
 
46
 
 
47
 
 
48
# Build architecture-independent files here.
 
49
binary-indep: build install
 
50
# We have nothing to do by default.
 
51
 
 
52
# Build architecture-dependent files here.
 
53
binary-arch: build install
 
54
        dh_testdir
 
55
        dh_testroot
 
56
        dh_installchangelogs CHANGES
 
57
        dh_installdocs
 
58
        dh_installexamples
 
59
        dh_install
 
60
        dh_installman menhir.1
 
61
        dh_link
 
62
        dh_strip
 
63
        dh_compress -X.pdf
 
64
        dh_fixperms
 
65
        dh_installdeb
 
66
        dh_shlibdeps
 
67
        dh_gencontrol
 
68
        dh_md5sums
 
69
        dh_builddeb
 
70
 
 
71
binary: binary-indep binary-arch
 
72
.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch