~ubuntu-branches/ubuntu/lucid/highlighting-kate/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Recai Oktaş
  • Date: 2008-02-29 00:09:00 UTC
  • Revision ID: james.westby@ubuntu.com-20080229000900-8qgo8ybcxifko870
Tags: 0.2.1-3
Brown paper bag release.  Add libghc6-parsec-prof to Build-Depends.
Closes: #467589

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
#
 
3
# This file is based on John Goerzen's Cabal Debian template.
 
4
# See http://www.n-heptane.com/nhlab/repos/cabalDebianTemplate/
 
5
#
 
6
# This file is in the public domain.
 
7
 
 
8
THIS    := $(shell sed -ne 's/^Source: \(.*\)/\1/p' debian/control)
 
9
PREFIX  := /usr
 
10
GHC     := $(firstword $(shell bash -c "type -p ghc6 ghc"))
 
11
 
 
12
configure: configure-stamp
 
13
configure-stamp:
 
14
        dh_testdir
 
15
 
 
16
        if [ -e Setup.lhs ]; then $(GHC) --make Setup.lhs -o setup; else $(GHC) --make Setup.hs -o setup; fi
 
17
        ./setup configure --ghc --prefix=$(PREFIX) $(CONFIGURE_OPTS)
 
18
 
 
19
        touch $@
 
20
 
 
21
build: build-stamp
 
22
build-stamp: configure-stamp 
 
23
        dh_testdir
 
24
 
 
25
        touch $@
 
26
 
 
27
clean:
 
28
        dh_testdir
 
29
        dh_testroot
 
30
 
 
31
        -./setup clean
 
32
        rm -rf setup Setup.hi Setup.ho Setup.o .*config* dist html
 
33
        rm -f configure-stamp build-stamp build-indep-stamp
 
34
 
 
35
        dh_clean 
 
36
 
 
37
install: build
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        dh_clean -k 
 
41
        dh_installdirs -a 
 
42
        dh_haskell -a
 
43
 
 
44
build-indep: build-indep-stamp
 
45
build-indep-stamp:
 
46
        dh_testdir
 
47
 
 
48
install-indep: build-indep
 
49
        dh_testdir
 
50
        dh_testroot
 
51
        dh_clean -k
 
52
        dh_installdirs -i
 
53
        dh_haskell -i
 
54
 
 
55
# Build architecture-independent files here.
 
56
binary-indep: build-indep install-indep
 
57
        dh_testdir
 
58
        dh_testroot
 
59
        dh_installchangelogs -i
 
60
        dh_installdocs -i
 
61
        dh_installexamples -i
 
62
        dh_installman -i
 
63
        dh_link -i
 
64
        dh_strip -i
 
65
        dh_compress -i
 
66
        dh_fixperms -i
 
67
        dh_installdeb -i
 
68
        dh_shlibdeps -i
 
69
        dh_gencontrol -i
 
70
        dh_md5sums -i
 
71
        dh_builddeb -i
 
72
 
 
73
# Build architecture-dependent files here.
 
74
binary-arch: build install
 
75
        dh_testdir
 
76
        dh_testroot
 
77
        dh_installchangelogs -a
 
78
        dh_installdocs -a
 
79
        dh_installexamples -a
 
80
        dh_installman -a
 
81
        dh_link -a
 
82
        dh_strip -a
 
83
        dh_compress -a
 
84
        dh_fixperms -a
 
85
        dh_installdeb -a
 
86
        dh_shlibdeps -a
 
87
        dh_gencontrol -a
 
88
        dh_md5sums -a
 
89
        dh_builddeb -a
 
90
 
 
91
binary: binary-indep binary-arch
 
92
.PHONY: build clean binary-indep binary-arch binary install build-indep install-indep