~ubuntu-branches/ubuntu/warty/docbook-html-forms/warty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Mark Johnson
  • Date: 2001-06-20 13:15:31 UTC
  • Revision ID: james.westby@ubuntu.com-20010620131531-elulqa92gcfcyqm5
Tags: 1.0-1
Initial Release. Closes: bug#85391

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# debian/rules for docbook-xml-jrefentry
 
3
# Maintainer: Mark Johnson <mrj@debian.org>
 
4
 
 
5
#export DH_VERBOSE=1
 
6
export DH_COMPAT=2
 
7
 
 
8
# This pseudo-template is a work-in-progress.
 
9
 
 
10
# General Stuff
 
11
sgmldir         := usr/share/sgml
 
12
 
 
13
# DTD Stuff
 
14
dtd-group       := docbook# [docbook|debiandoc|sgmltools|tei|html|jade| ... ]
 
15
sgml-type       := xml# [ xml | sgml ]
 
16
dtd-name        := html-forms# [ package-subname]
 
17
dtd-version     := 1.0
 
18
 
 
19
 
 
20
parent-pkg      := docbook-xml
 
21
parent-version  := 4.1.2
 
22
 
 
23
package         := $(dtd-group)-$(dtd-name)# docbook-html-forms
 
24
 
 
25
prefix          := debian/$(package)
 
26
docdir          := $(prefix)/usr/share/doc/$(package)
 
27
 
 
28
pkgdir          := $(prefix)/$(sgmldir)/$(dtd-group)/custom/$(dtd-name)
 
29
dtddir          := $(pkgdir)/$(dtd-version)
 
30
 
 
31
 
 
32
# tool abstraction
 
33
INSTALL_FILE    := install -o root -g root -m 644 -p
 
34
INSTALL_SCRIPT  := install -o root -g root -m 755 -p
 
35
MAKE_DIR        := install -d -o root -g root -m 755
 
36
COMPRESS        := gzip -9f
 
37
 
 
38
build: build-stamp
 
39
# nothing to be done
 
40
build-stamp:
 
41
        dh_testdir
 
42
        touch build-stamp
 
43
clean:
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        rm -f build-stamp
 
47
        dh_clean
 
48
 
 
49
binary-indep: build
 
50
        dh_testdir
 
51
        dh_testroot
 
52
 
 
53
 
 
54
        $(MAKE_DIR) $(dtddir)
 
55
        $(INSTALL_FILE) dbforms.dtd  $(dtddir)/
 
56
 
 
57
        $(INSTALL_FILE) debian/catalog $(pkgdir)/catalog
 
58
 
 
59
# finish up
 
60
#       dh_testversion 2
 
61
        dh_testdir
 
62
        dh_testroot
 
63
        dh_installdocs
 
64
        dh_installchangelogs
 
65
        dh_installexamples -i testform.xml
 
66
        dh_compress -i
 
67
        dh_fixperms -i
 
68
        dh_installdeb -i
 
69
        dh_gencontrol -i
 
70
        dh_md5sums -i
 
71
        dh_builddeb -i
 
72
 
 
73
# Build architecture-dependent files here.
 
74
binary-arch: build
 
75
# nothing to be done
 
76
 
 
77
binary: binary-indep binary-arch
 
78
.PHONY: build clean binary-indep binary-arch binary
 
79
 
 
80