~ubuntu-branches/ubuntu/maverick/ogmtools/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Marc Leeman
  • Date: 2004-04-24 12:41:36 UTC
  • Revision ID: james.westby@ubuntu.com-20040424124136-95za3xyhkx5hn7u7
Tags: upstream-1.4
ImportĀ upstreamĀ versionĀ 1.4

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
# This is the debhelper compatibility version to use.
 
9
export DH_COMPAT=3
 
10
 
 
11
# These are used for cross-compiling and for saving the configure script
 
12
# from having to guess our platform (since we know it already)
 
13
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
14
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
15
 
 
16
 
 
17
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
18
        CFLAGS += -g
 
19
endif
 
20
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
21
        INSTALL_PROGRAM += -s
 
22
endif
 
23
 
 
24
config.status: configure
 
25
        dh_testdir
 
26
        # Add here commands to configure the package.
 
27
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 
28
        --prefix=/usr --mandir=\$${prefix}/share/man \
 
29
        --infodir=\$${prefix}/share/info
 
30
 
 
31
 
 
32
build: build-stamp
 
33
 
 
34
build-stamp:  config.status
 
35
        dh_testdir
 
36
 
 
37
        # Add here commands to compile the package.
 
38
        $(MAKE)
 
39
        #/usr/bin/docbook-to-man debian/ogmtools.sgml > ogmtools.1
 
40
 
 
41
        touch build-stamp
 
42
 
 
43
clean:
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        rm -f build-stamp 
 
47
 
 
48
        # Add here commands to clean up after the build process.
 
49
        -$(MAKE) distclean
 
50
        -test -r /usr/share/misc/config.sub && \
 
51
          cp -f /usr/share/misc/config.sub config.sub
 
52
        -test -r /usr/share/misc/config.guess && \
 
53
          cp -f /usr/share/misc/config.guess config.guess
 
54
 
 
55
 
 
56
        dh_clean
 
57
 
 
58
install: build
 
59
        dh_testdir
 
60
        dh_testroot
 
61
        dh_clean -k
 
62
        dh_installdirs
 
63
 
 
64
        # Add here commands to install the package into debian/ogmtools.
 
65
        $(MAKE) install prefix=$(CURDIR)/debian/ogmtools/usr
 
66
 
 
67
 
 
68
# Build architecture-independent files here.
 
69
binary-indep: build install
 
70
# We have nothing to do by default.
 
71
 
 
72
# Build architecture-dependent files here.
 
73
binary-arch: build install
 
74
        dh_testdir
 
75
        dh_testroot
 
76
#       dh_installdebconf       
 
77
        dh_installdocs
 
78
        dh_installexamples
 
79
        dh_installmenu
 
80
#       dh_installlogrotate
 
81
#       dh_installemacsen
 
82
#       dh_installpam
 
83
#       dh_installmime
 
84
#       dh_installinit
 
85
        dh_installcron
 
86
        dh_installman
 
87
        dh_installinfo
 
88
#       dh_undocumented ogmmerge.1 ogminfo.1 ogmdemux.1 ogmsplit.1
 
89
        dh_installchangelogs ChangeLog
 
90
        dh_link
 
91
        dh_strip
 
92
        dh_compress
 
93
        dh_fixperms
 
94
#       dh_makeshlibs
 
95
        dh_installdeb
 
96
#       dh_perl
 
97
        dh_shlibdeps
 
98
        dh_gencontrol
 
99
        dh_md5sums
 
100
        dh_builddeb
 
101
 
 
102
binary: binary-indep binary-arch
 
103
.PHONY: build clean binary-indep binary-arch binary install