~ubuntu-branches/ubuntu/quantal/funnelweb-doc/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2002-03-28 23:21:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020328232107-iha8hobgv7t6zd9q
Tags: 3.2d-2
* Build-depend on debhelper (Closes: #140257).
* Use build-depends-indep, not build-depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Adapted from sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
# copyright 1999, 2000 by Yann Dirson
 
5
 
 
6
# Uncomment this to turn on verbose mode.
 
7
#export DH_VERBOSE=1
 
8
 
 
9
# We need to ensure bash for the ${i%.shtml} syntax
 
10
#SHELL=bash
 
11
 
 
12
PACKAGE=funnelweb-doc
 
13
 
 
14
topdir=$(shell pwd)
 
15
debdir=${topdir}/debian
 
16
tmpdir=${debdir}/tmp
 
17
docdir=${tmpdir}/usr/share/doc/${PACKAGE}
 
18
 
 
19
# This is the debhelper compatability version to use.
 
20
export DH_COMPAT=1
 
21
 
 
22
build: build-stamp
 
23
build-stamp:
 
24
        dh_testdir
 
25
        fw 0fw.fw
 
26
        (cd tutorial && fw 0fw_tut.fw)
 
27
        (cd reference && fw 0fw_ref.fw)
 
28
        (cd developer && fw 0fw_dev.fw)
 
29
        touch build-stamp
 
30
 
 
31
clean:
 
32
        dh_testdir
 
33
        dh_testroot
 
34
        dh_clean
 
35
        -rm build-stamp *.lis */*.lis
 
36
 
 
37
install: build
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        dh_clean -k
 
41
        dh_installdirs
 
42
 
 
43
        install -d ${docdir}
 
44
        cp -a debian/index.html ${docdir}
 
45
 
 
46
#       for i in *.shtml; do \
 
47
#               cp -a $$i ${docdir}/$${i%shtml}html; \
 
48
#       done
 
49
 
 
50
#       cp -a *.shtml ${docdir}/
 
51
 
 
52
        for i in tutorial developer reference; do \
 
53
                install -d ${docdir}/$$i; \
 
54
                cp -a $$i/*.html $$i/binary ${docdir}/$$i/; \
 
55
        done
 
56
 
 
57
# Build architecture-independent files here.
 
58
binary-indep: build install
 
59
#       dh_testversion
 
60
        dh_testdir
 
61
        dh_testroot
 
62
        dh_installdocs
 
63
        dh_installchangelogs
 
64
        dh_compress -X.shtml -X.cgi -X.txt
 
65
        dh_fixperms
 
66
        dh_installdeb
 
67
        dh_gencontrol
 
68
        dh_md5sums
 
69
        dh_builddeb
 
70
 
 
71
# Build architecture-dependent files here.
 
72
binary-arch: build install
 
73
 
 
74
binary: binary-indep binary-arch
 
75
.PHONY: build clean binary-indep binary-arch binary install