2
# Made with the aid of debmake, by Christoph Lameter,
3
# based on the sample debian/rules file for GNU hello by Ian Jackson.
10
ifeq ($(DEB_BUILD_ARCH), alpha)
18
./Configure -Dccflags="-Wall $(EXTRA_FLAGS)" -Doptimize="$(OPTFLAGS)" \
19
-Dprefix=/usr -Dprivlib=/usr/share/gtk-gnutella -Dofficial=true \
22
# cp menu.ex debian/tmp/usr/lib/menu/xtranslate
29
-rm -f `find . -name "*~"`
30
-rm -rf debian/tmp debian/files* core debian/substvars
32
binary-indep: checkroot build
34
# There are no architecture-independent files to be uploaded
35
# generated by this package. If there were any they would be
38
binary-arch: checkroot build
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
50
chown -R root.root debian/tmp
51
chmod -R go=rX debian/tmp
52
# Next line removes spurious symlink -- RAM, 26/08/2001
54
dpkg --build debian/tmp ..
60
binary: binary-indep binary-arch
64
test root = "`whoami`"
66
.PHONY: binary binary-arch binary-indep clean checkroot