~ubuntu-branches/ubuntu/karmic/html2ps/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2006-11-06 21:37:00 UTC
  • mfrom: (2.1.3 dapper)
  • Revision ID: james.westby@ubuntu.com-20061106213700-wpmglc0xnyuw4roc
Tags: 1.0b5-2
* New maintainer (Closes: #360940).
* Redone debian directory based on current debhelper templates, additionally:
  - added menu file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# debian/rules for perlftlib
4
 
 
5
 
export DH_COMPAT=4
6
 
 
7
 
package := $(firstword $(shell dh_listpackages))
8
 
prefix  := $(PWD)/debian/$(package)/usr
9
 
 
10
 
version := $(shell dpkg-parsechangelog | \
11
 
                        sed -ne 's/^Version: *\([0-9]\+:\)*//p')
12
 
 
13
 
tag:
14
 
        cvs tag -c -F $(subst .,_,debian_version_$(version))
15
 
ifeq ($(findstring -,$(version)),)
16
 
        cvs tag -c -F $(subst .,_,upstream_version_$(version))
17
 
endif
18
 
 
19
 
build:  build-stamp
20
 
build-stamp:
21
 
        dh_testdir
22
 
        ./html2ps -o html2ps.ps html2ps.html
23
 
        cp -a contrib/xhtml2ps/README README.xhtml2ps
24
 
        touch $@
25
 
 
26
 
clean:  checkroot
27
 
        rm -f build-stamp
28
 
        rm -f html2ps.ps README.xhtml2ps
29
 
        dh_clean
30
 
 
31
 
binary-arch:    checkroot build
32
 
 
33
 
binary-indep:   checkroot build
34
 
        dh_clean
35
 
        dh_installdirs /etc usr/bin
36
 
 
37
 
        install -m 755 html2ps contrib/xhtml2ps/xhtml2ps $(prefix)/bin
38
 
        install -m 644 -p debian/html2psrc $(prefix)/../etc
39
 
 
40
 
        dh_installdocs html2ps.ps html2ps.html README README.xhtml2ps
41
 
        dh_installexamples debian/html2psrc sample hyphen.tex
42
 
        dh_installman *.[15] debian/*.1x
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
 
 
6
build:
 
7
 
 
8
clean:
 
9
        dh_testdir
 
10
        dh_testroot
 
11
 
 
12
        dh_clean
 
13
 
 
14
install: build
 
15
        dh_testdir
 
16
        dh_testroot
 
17
        dh_clean -k
 
18
        dh_installdirs
 
19
 
 
20
        # Installing package
 
21
        install -D -m 0755 html2ps debian/html2ps/usr/bin/html2ps
 
22
        install -D -m 0644 debian/config/html2psrc debian/html2ps/etc/html2psrc
 
23
 
 
24
        install -D -m 0755 contrib/xhtml2ps/xhtml2ps debian/xhtml2ps/usr/bin/xhtml2ps
 
25
 
 
26
binary-arch: build install
 
27
 
 
28
binary-indep: build install
 
29
        dh_testdir
 
30
        dh_testroot
43
31
        dh_installchangelogs
 
32
        dh_installdocs
 
33
        dh_installexamples
 
34
        dh_install
 
35
        dh_installmenu
 
36
        dh_installman
 
37
        dh_link
44
38
        dh_compress
45
39
        dh_fixperms
46
40
        dh_perl
49
43
        dh_md5sums
50
44
        dh_builddeb
51
45
 
52
 
binary: binary-indep binary-arch
53
 
 
54
 
checkroot:
55
 
        dh_testdir
56
 
        dh_testroot
57
 
 
58
 
.PHONY: binary binary-arch binary-indep clean checkroot build
 
46
binary: binary-indep binary-arch
 
47
.PHONY: build clean binary-indep binary-arch binary install