~ubuntu-branches/ubuntu/wily/libtext-wrapi18n-perl/wily

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Tomohiro KUBOTA
  • Date: 2003-06-25 18:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20030625181346-nqwegqy8ydihu0de
Tags: 0.06-1
* New upstream version.
  + Clearification of the license.
* Rewrote the Description: field.
* Previous versions are not adopted into Debian archive yet,
  so I did a right ITP which I forgot to do (Closes: #198761).

Show diffs side-by-side

added added

removed removed

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