~ubuntu-branches/ubuntu/oneiric/wmfrog/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jari Aalto
  • Date: 2008-11-07 09:57:30 UTC
  • Revision ID: james.westby@ubuntu.com-20081107095730-u4r34q323hjw5w6m
Tags: 0.2.0-1
Initial release (RFP/ITP; Closes: #504786).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
MAKEDIR = Src
 
8
MAKEOPT = -C $(MAKEDIR)
 
9
 
 
10
PACKAGE = wmfrog
 
11
MANSECT = 1x
 
12
 
 
13
include /usr/share/dpatch/dpatch.make
 
14
include debian/debian-vars.mk
 
15
 
 
16
man:
 
17
        # convert *.pod to manual page
 
18
        $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) \
 
19
        MANSECT=$(MANSECT) makeman
 
20
 
 
21
configure: configure-stamp
 
22
 
 
23
configure-stamp:
 
24
        dh_testdir
 
25
        # Commands to configure the package.
 
26
        touch configure-stamp
 
27
 
 
28
build: build-stamp
 
29
 
 
30
build-stamp: configure-stamp patch man
 
31
        dh_testdir
 
32
 
 
33
        # Commands to compile the package.
 
34
        $(MAKE) $(MAKE_FLAGS) $(MAKEOPT)
 
35
 
 
36
        touch build-stamp
 
37
 
 
38
clean: unpatch
 
39
        dh_testdir
 
40
        dh_testroot
 
41
        rm -f build-stamp configure-stamp
 
42
 
 
43
        # Commands to clean up after the build process.
 
44
        [ ! Src/Makefile ] || $(MAKE) $(MAKEOPT) clean
 
45
 
 
46
        rm -f debian/*.$(MANSECT)
 
47
 
 
48
        dh_clean
 
49
 
 
50
install: build
 
51
        dh_testdir
 
52
        dh_testroot
 
53
        dh_clean -k
 
54
        dh_installdirs
 
55
 
 
56
        # Add here commands to install the package into debian/wmfrog.
 
57
        $(MAKE) $(MAKEOPT) install DESTDIR=$(CURDIR)/debian/wmfrog
 
58
 
 
59
# Build architecture-independent files here.
 
60
binary-indep: build install
 
61
        # We have nothing to do.
 
62
 
 
63
# Build architecture-dependent files here.
 
64
binary-arch: build install
 
65
        dh_testdir
 
66
        dh_testroot
 
67
        dh_installchangelogs CHANGES
 
68
        dh_installdocs
 
69
        dh_installexamples
 
70
#       dh_install
 
71
#       dh_installmenu
 
72
#       dh_installdebconf
 
73
#       dh_installlogrotate
 
74
#       dh_installemacsen
 
75
#       dh_installpam
 
76
#       dh_installmime
 
77
#       dh_installinit
 
78
#       dh_installcron
 
79
#       dh_installinfo
 
80
        dh_installman debian/*.$(MANSECT)
 
81
        dh_link
 
82
        dh_strip
 
83
        dh_compress
 
84
        dh_fixperms
 
85
#       dh_perl
 
86
#       dh_python
 
87
#       dh_makeshlibs
 
88
        dh_installdeb
 
89
        dh_shlibdeps
 
90
        dh_gencontrol
 
91
        dh_md5sums
 
92
        dh_builddeb
 
93
 
 
94
binary: binary-indep binary-arch
 
95
.PHONY: build clean binary-indep binary-arch binary install configure man