~ubuntu-branches/ubuntu/karmic/gtk-gnutella/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Kleineidam
  • Date: 2004-05-22 15:26:55 UTC
  • Revision ID: james.westby@ubuntu.com-20040522152655-lyi6iaswmy4hq4wy
Tags: upstream-0.93.3.0
ImportĀ upstreamĀ versionĀ 0.93.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Made with the aid of debmake, by Christoph Lameter,
 
3
# based on the sample debian/rules file for GNU hello by Ian Jackson.
 
4
 
 
5
package=gtk-gnutella
 
6
 
 
7
OPTFLAGS=-O2 -g
 
8
EXTRA_FLAGS=
 
9
 
 
10
ifeq ($(DEB_BUILD_ARCH), alpha)
 
11
        EXTRA_FLAGS=-mieee
 
12
endif
 
13
 
 
14
 
 
15
build:
 
16
        $(checkdir)
 
17
        rm -f config.sh
 
18
        ./Configure -Dccflags="-Wall $(EXTRA_FLAGS)" -Doptimize="$(OPTFLAGS)" \
 
19
                -Dprefix=/usr -Dprivlib=/usr/share/gtk-gnutella -Dofficial=true \
 
20
                -ders
 
21
        $(MAKE)
 
22
#       cp menu.ex debian/tmp/usr/lib/menu/xtranslate 
 
23
        touch build
 
24
 
 
25
clean:
 
26
        $(checkdir)
 
27
        -rm -f build
 
28
        -$(MAKE) clobber
 
29
        -rm -f `find . -name "*~"`
 
30
        -rm -rf debian/tmp debian/files* core debian/substvars
 
31
 
 
32
binary-indep: checkroot build
 
33
        $(checkdir)
 
34
# There are no architecture-independent files to be uploaded
 
35
# generated by this package.  If there were any they would be
 
36
# made here.
 
37
 
 
38
binary-arch: checkroot build
 
39
        $(checkdir)
 
40
        -rm -rf debian/tmp
 
41
        install -d debian/tmp
 
42
        cd debian/tmp && install -d `cat ../dirs`
 
43
        $(MAKE) install INSTALL_PREFIX=`pwd`/debian/tmp
 
44
        $(MAKE) install.man INSTALL_PREFIX=`pwd`/debian/tmp
 
45
        strip --remove-section=.comment --remove-section=.note `pwd`/debian/tmp/usr/bin/gtk-gnutella
 
46
# Must have debmake installed for this to work. Otherwise please copy
 
47
# /usr/bin/debstd into the debian directory and change debstd to debian/debstd
 
48
        debstd ChangeLog README TODO 
 
49
        dpkg-gencontrol -isp
 
50
        chown -R root.root debian/tmp
 
51
        chmod -R go=rX debian/tmp
 
52
# Next line removes spurious symlink -- RAM, 26/08/2001
 
53
        rm -f debian/tmp/.so.
 
54
        dpkg --build debian/tmp ..
 
55
 
 
56
define checkdir
 
57
        test -f debian/rules
 
58
endef
 
59
 
 
60
binary: binary-indep binary-arch
 
61
 
 
62
checkroot:
 
63
        $(checkdir)
 
64
        test root = "`whoami`"
 
65
 
 
66
.PHONY: binary binary-arch binary-indep clean checkroot