~ubuntu-branches/ubuntu/karmic/libapache-gallery-perl/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jesus Climent
  • Date: 2004-04-29 08:54:55 UTC
  • Revision ID: james.westby@ubuntu.com-20040429085455-omzxj28eu0vzjf5q
Tags: 0.8-3
* The "Do not press gqgg while editing under vi unless you really know what
  you are doing" release.
* Formated README.Debian for readability (Closes: #246465). Kudos to
  Adeodato Simó.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
#export DH_VERBOSE=1
 
4
 
 
5
export DH_COMPAT := 3
 
6
 
 
7
PERL ?= /usr/bin/perl
 
8
 
 
9
b := $(shell pwd)/debian/libapache-gallery-perl
 
10
 
 
11
arrange: arrange-stamp
 
12
arrange-stamp: install
 
13
        dh_testdir
 
14
        touch arrange-stamp
 
15
 
 
16
binary: binary-stamp
 
17
binary-stamp: binary-indep binary-arch
 
18
        dh_testdir
 
19
        touch binary-stamp
 
20
 
 
21
binary-arch: binary-arch-stamp
 
22
binary-arch-stamp: arrange
 
23
        dh_testdir
 
24
        touch binary-arch-stamp
 
25
 
 
26
binary-indep: binary-indep-stamp
 
27
binary-indep-stamp: arrange
 
28
        dh_testdir
 
29
        dh_testroot
 
30
        dh_installman
 
31
        dh_installdocs README
 
32
        dh_installchangelogs Changes
 
33
        dh_fixperms
 
34
        dh_installdeb
 
35
        dh_perl
 
36
        dh_compress
 
37
        dh_gencontrol
 
38
        dh_md5sums
 
39
        dh_builddeb
 
40
        touch binary-indep-stamp
 
41
 
 
42
build: build-stamp
 
43
build-stamp: config
 
44
        dh_testdir
 
45
        $(MAKE)
 
46
        touch build-stamp
 
47
 
 
48
clean:
 
49
        dh_testdir
 
50
        dh_testroot
 
51
        -$(MAKE) clean
 
52
        if [ -e Makefile ]; then $(MAKE) -i distclean; fi
 
53
        dh_clean arrange-stamp binary-stamp binary-arch-stamp binary-indep-stamp build-stamp config-stamp install-stamp
 
54
        rm -rf debian/libapache-gallery-perl
 
55
 
 
56
config: config-stamp
 
57
config-stamp:
 
58
        dh_testdir
 
59
        $(PERL) Makefile.PL INSTALLDIRS=vendor
 
60
        touch config-stamp
 
61
 
 
62
install: install-stamp
 
63
install-stamp: build
 
64
        dh_testdir
 
65
        dh_clean -k
 
66
        dh_installdirs
 
67
        
 
68
        $(MAKE)
 
69
        $(MAKE) install PREFIX=$(CURDIR)/debian/libapache-gallery-perl/usr
 
70
        cp -r $(CURDIR)/templates/* $(CURDIR)/debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/templates
 
71
        cp -r $(CURDIR)/htdocs/* $(CURDIR)/debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/icons
 
72
        touch install-stamp
 
73
 
 
74
.PHONY: binary binary-arch binary-indep clean