~ubuntu-branches/ubuntu/jaunty/perl-tk/jaunty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Zander
  • Date: 2002-03-20 00:50:05 UTC
  • Revision ID: james.westby@ubuntu.com-20020320005005-ghg9u0mz48rg79ck
Tags: 1:800.024-1
* New upstream version:
*       allows ballons to be associated with menu entries,
Closes: #34786
*       fixes Tk::Compound man page,
Closes: #109335
*       includes <time.h> in pTk/mTk/generic/tkCanvPs.c to prevent segfaults in
        64bit systems,
Closes: #126129
*       no longer ignores the -initialdir parameter in getOpenFile
Closes: #132762

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*-makefile-*-
 
3
# debian/rules file for perl-tk
 
4
 
 
5
export DH_COMPAT=3
 
6
 
 
7
PERL ?= /usr/bin/perl
 
8
 
 
9
package := $(shell sed -ne 's/^Package: *//p' debian/control)
 
10
prefix  := $(PWD)/debian/$(package)/usr
 
11
 
 
12
version := $(shell dpkg-parsechangelog | \
 
13
                        sed -ne 's/^Version: *\([0-9]\+:\)*//p')
 
14
 
 
15
tag:
 
16
        cvs -Q status | grep File: | grep -qv Up-to-date && exit 1 || exit 0
 
17
        cvs tag -F $(subst .,_,debian_version_$(version))
 
18
ifeq ($(findstring -,$(version)),)
 
19
        cvs tag -F $(subst .,_,upstream_version_$(version))
 
20
endif
 
21
 
 
22
build: build-stamp
 
23
build-stamp: 
 
24
        dh_testdir
 
25
        $(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
 
26
        $(MAKE) LD_RUN_PATH=
 
27
        touch $@
 
28
 
 
29
clean: checkroot
 
30
        -rm -f build-stamp
 
31
        -$(MAKE) distclean
 
32
        dh_clean
 
33
 
 
34
binary-indep:   checkroot build
 
35
 
 
36
binary-arch:    checkroot build
 
37
        dh_clean
 
38
        dh_installdirs
 
39
 
 
40
        $(MAKE) pure_install PREFIX=$(prefix)
 
41
 
 
42
        dh_installdocs README* VERSIONS
 
43
        dh_installexamples 
 
44
        dh_installchangelogs Changes
 
45
        dh_link
 
46
        dh_strip
 
47
        dh_compress
 
48
        dh_fixperms
 
49
        dh_perl
 
50
        dh_shlibdeps
 
51
        dh_makeshlibs
 
52
        dh_installdeb
 
53
        dh_gencontrol
 
54
        dh_md5sums
 
55
        dh_builddeb
 
56
 
 
57
binary:         binary-indep binary-arch
 
58
 
 
59
checkroot:
 
60
        dh_testdir
 
61
        dh_testroot
 
62
 
 
63
.PHONY:  binary binary-indep binary-arch clean checkroot build
 
64