~ubuntu-branches/ubuntu/natty/libtext-wikiformat-perl/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Sam Johnston
  • Date: 2004-02-18 17:44:54 UTC
  • Revision ID: james.westby@ubuntu.com-20040218174454-ibu73ur13q2dve7r
Tags: 0.71-4
Updates section to 'perl' from 'interpreters' as per override file. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# GNU copyright 1997 to 1999 by Joey Hess.
 
5
 
 
6
# Uncomment this to turn on verbose mode.
 
7
#export DH_VERBOSE=1
 
8
 
 
9
 
 
10
ifndef PERL
 
11
PERL = /usr/bin/perl
 
12
endif
 
13
 
 
14
CFLAGS = -Wall -g
 
15
 
 
16
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
17
        CFLAGS += -O0
 
18
else
 
19
        CFLAGS += -O2
 
20
endif
 
21
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
22
        INSTALL_PROGRAM += -s
 
23
endif
 
24
 
 
25
configure: configure-stamp
 
26
configure-stamp:
 
27
        dh_testdir
 
28
        # Add here commands to configure the package.
 
29
 
 
30
        touch configure-stamp
 
31
 
 
32
 
 
33
build: build-stamp
 
34
 
 
35
build-stamp: configure-stamp 
 
36
        dh_testdir
 
37
 
 
38
        # Add here commands to compile the package.
 
39
        $(PERL) Build.PL installdirs=vendor
 
40
        #/usr/bin/docbook-to-man debian/libtext-wikiformat-perl.sgml > libtext-wikiformat-perl.1
 
41
 
 
42
        touch build-stamp
 
43
 
 
44
clean:
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        rm -f build-stamp configure-stamp
 
48
 
 
49
        # Add here commands to clean up after the build process.
 
50
        -./Build clean
 
51
        rm -rf ./Build _build
 
52
 
 
53
        dh_clean 
 
54
 
 
55
install: build
 
56
        dh_testdir
 
57
        dh_testroot
 
58
        dh_clean -k 
 
59
        dh_installdirs
 
60
 
 
61
        # Add here commands to install the package into debian/libtext-wikiformat-perl.
 
62
        ./Build test
 
63
        ./Build install destdir=$(CURDIR)/debian/libtext-wikiformat-perl
 
64
 
 
65
 
 
66
# Build architecture-independent files here.
 
67
binary-indep: build install
 
68
# We have nothing to do by default.
 
69
 
 
70
# Build architecture-dependent files here.
 
71
binary-arch: build install
 
72
        dh_testdir
 
73
        dh_testroot
 
74
        dh_installchangelogs Changes
 
75
        dh_installdocs
 
76
        dh_installexamples
 
77
#       dh_install
 
78
#       dh_installmenu
 
79
#       dh_installdebconf       
 
80
#       dh_installlogrotate
 
81
#       dh_installemacsen
 
82
#       dh_installpam
 
83
#       dh_installmime
 
84
#       dh_installinit
 
85
#       dh_installcron
 
86
#       dh_installinfo
 
87
        dh_installman
 
88
        dh_link
 
89
#       dh_strip
 
90
        dh_compress
 
91
        dh_fixperms
 
92
        dh_perl
 
93
#       dh_python
 
94
#       dh_makeshlibs
 
95
        dh_installdeb
 
96
        dh_shlibdeps
 
97
        dh_gencontrol
 
98
        dh_md5sums
 
99
        dh_builddeb
 
100
 
 
101
binary: binary-indep binary-arch
 
102
.PHONY: build clean binary-indep binary-arch binary install configure