~ubuntu-branches/ubuntu/edgy/qsampler/edgy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Dana Olson
  • Date: 2006-02-21 06:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20060221063725-kdzaum2ymie8yhs2
Tags: 0.1.2-0ubuntu1
ReleaseĀ forĀ Dapper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
4
 
# This file was originally written by Joey Hess and Craig Small.
5
 
# As a special exception, when this file is copied by dh-make into a
6
 
# dh-make output file, you may use that output file without restriction.
7
 
# This special exception was added by Craig Small in version 0.37 of dh-make.
8
 
 
9
 
# Uncomment this to turn on verbose mode.
10
 
export DH_VERBOSE=1
11
2
 
12
3
export QTDIR=/usr/share/qt3
13
4
 
14
 
# These are used for cross-compiling and for saving the configure script
15
 
# from having to guess our platform (since we know it already)
16
5
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17
6
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18
7
 
26
15
 
27
16
config.status:
28
17
        dh_testdir
29
 
        # Add here commands to configure the package.
 
18
        ln -s /usr/share/misc/config.sub config.sub
 
19
        ln -s /usr/share/misc/config.guess config.guess
30
20
        $(MAKE) -f Makefile.cvs
31
21
        chmod a+x configure
32
22
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
33
23
 
34
 
 
35
24
build: build-stamp
36
25
 
37
26
build-stamp:  config.status
38
27
        dh_testdir
39
 
 
40
 
        # Add here commands to compile the package.
41
28
        $(MAKE)
42
 
        #docbook-to-man debian/qsampler.sgml > qsampler.1
43
 
 
44
29
        touch build-stamp
45
30
 
46
31
clean:
47
32
        dh_testdir
48
33
        dh_testroot
49
 
        rm -f build-stamp
50
 
 
51
 
        # Add here commands to clean up after the build process.
 
34
        rm -f build-stamp config.sub config.guess
52
35
        -$(MAKE) -f Makefile.cvs
53
36
        chmod a+x configure
54
37
        -$(MAKE) distclean
55
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
56
 
        cp -f /usr/share/misc/config.sub config.sub
57
 
endif
58
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
59
 
        cp -f /usr/share/misc/config.guess config.guess
60
 
endif
61
 
 
62
 
 
63
38
        dh_clean
64
39
 
65
40
install: build
67
42
        dh_testroot
68
43
        dh_clean -k
69
44
        dh_installdirs
70
 
 
71
 
        # Add here commands to install the package into debian/qsampler.
72
45
        $(MAKE) install DESTDIR=$(CURDIR)/debian/qsampler
73
46
 
74
 
 
75
47
# Build architecture-independent files here.
76
48
binary-indep: build install
77
49
# We have nothing to do by default.
84
56
        dh_installdocs
85
57
        dh_installexamples
86
58
        dh_install
87
 
#       dh_installmenu
88
 
#       dh_installdebconf
89
 
#       dh_installlogrotate
90
 
#       dh_installemacsen
91
 
#       dh_installpam
92
 
#       dh_installmime
93
 
#       dh_installinit
94
 
#       dh_installcron
95
 
#       dh_installinfo
96
59
        dh_installman debian/qsampler.1
 
60
        dh_desktop
97
61
        dh_link
98
62
        dh_strip
99
63
        dh_compress
100
64
        dh_fixperms
101
 
#       dh_perl
102
 
#       dh_python
103
 
#       dh_makeshlibs
104
65
        dh_installdeb
105
66
        dh_shlibdeps
106
67
        dh_gencontrol