~ubuntu-branches/ubuntu/natty/libgeo-metar-perl/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jay Bonci
  • Date: 2004-10-27 14:39:56 UTC
  • mfrom: (0.1.1 upstream) (1.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041027143956-67r5v7ahjmxqr36r
Tags: 1.14-5
* Change to POD formatting so URL doesn't break oddly (Closes: #272910)
* Make examples executable (Closes: #273082)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# Uncomment this to turn on verbose mode.
6
6
#export DH_VERBOSE=1
7
7
 
8
 
# This is the debhelper compatability version to use.
9
 
export DH_COMPAT=1
10
 
 
11
 
ifndef PERL
12
 
PERL = /usr/bin/perl
13
 
endif
14
 
 
15
 
TMP     =`pwd`/debian/tmp
16
 
archlib =`$(PERL) -MConfig -e 'print $$Config{installarchlib}'`
17
 
config  =INSTALLDIRS=perl INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 INSTALLMAN3DIR=$(TMP)/usr/share/man/man3 INSTALLPRIVLIB=$(TMP)/usr/lib/perl5 INSTALLARCHLIB=$(TMP)$(archlib)
18
 
 
19
 
 
20
 
build: build-stamp
21
 
build-stamp:
 
8
# This is the debhelper compatibility version to use.
 
9
# export DH_COMPAT=4
 
10
 
 
11
PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
 
12
 
 
13
 
 
14
build:
22
15
        dh_testdir
23
 
 
24
16
        # Add here commands to compile the package.
25
 
        $(PERL) Makefile.PL $(config)
26
 
        $(MAKE) CFLAGS="-O2 -g -Wall"
27
 
 
28
 
        touch build-stamp
29
 
 
30
 
 
 
17
        perl Makefile.PL verbose INSTALLDIRS=vendor
31
18
clean:
32
19
        dh_testdir
33
20
        dh_testroot
34
 
        rm -f build-stamp
35
21
 
36
 
        # Add here commands to clean up after the build process.
37
22
        -$(MAKE) clean
38
 
 
 
23
        rm -f Makefile.old
39
24
        dh_clean
40
25
 
41
 
 
42
 
install: build
 
26
install:
43
27
        dh_testdir
44
28
        dh_testroot
45
29
        dh_clean -k
46
30
        dh_installdirs
47
31
 
48
 
        # Add here commands to install the package into debian/tmp.
49
 
        $(MAKE) pure_install
50
 
 
51
 
        touch install-stamp
52
 
 
53
 
# Build architecture-independent files here.
 
32
        $(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test install
 
33
        -find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
 
34
        -find $(CURDIR)/examples/ -exec chmod 755 {} \;
 
35
 
 
36
binary-arch:;
54
37
binary-indep: build install
55
 
# We have nothing to do by default.
56
 
 
57
 
# Build architecture-dependent files here.
58
 
binary-arch: build install
59
 
#       dh_testversion
60
38
        dh_testdir
61
39
        dh_testroot
62
 
#       dh_installdebconf
63
 
        dh_installdocs README
64
 
        dh_installexamples examples/fetch_temp.pl examples/simple_dump.pl
65
 
        dh_installmenu
66
 
#       dh_installemacsen
67
 
#       dh_installinit
68
 
#       dh_installcron
69
 
        dh_installmanpages
70
 
#       dh_undocumented
71
 
        dh_installchangelogs ChangeLog
 
40
        dh_installdocs
 
41
        dh_installman
 
42
        dh_installchangelogs
 
43
        dh_installexamples
72
44
        dh_link
73
45
        dh_strip
74
46
        dh_compress
75
47
        dh_fixperms
76
 
        # You may want to make some executables suid here
77
 
        dh_suidregister
78
 
#       dh_makeshlibs
79
48
        dh_installdeb
80
 
        dh_perl 
81
 
        dh_shlibdeps
 
49
        dh_perl
82
50
        dh_gencontrol
83
51
        dh_md5sums
84
52
        dh_builddeb
85
53
 
86
54
binary: binary-indep binary-arch
87
 
.PHONY: build clean binary-indep binary-arch binary install
 
55
.PHONY: build clean binary-indep binary-arch binary install configure