root/branches/gajim_0.5/debian/rules

Revision 412, 1.5 kB (checked in by asterix, 4 years ago)

make manpage automatically

  • Property svn:executable set to *
Line 
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
5package=gajim
6
7build: build-stamp
8build-stamp:
9        $(checkdir)
10       
11#       $(MAKE) CFLAGS="-O2 -g -Wall"
12        make
13        touch build
14
15clean:
16        $(checkdir)
17        rm -f build
18#       -$(MAKE) clean
19        make clean
20        rm -f `find . -name "*~"`
21        rm -rf debian/tmp debian/files* core debian/substvars
22
23install: install-stamp
24install-stamp: build-stamp
25        $(checkdir)
26        rm -rf debian/tmp
27        install -d debian/tmp
28        cd debian/tmp && install -d `cat ../dirs`
29        make install PREFIX=/usr DESTDIR=`pwd`/debian/tmp
30        cp gajim.xpm debian/tmp/usr/share/pixmaps
31        chmod -x debian/tmp/usr/share/gajim/gajim.py
32        sed -ne '1d;w debian/tmp/gajim.py.tmp' debian/tmp/usr/share/gajim/gajim.py
33        mv debian/tmp/gajim.py.tmp debian/tmp/usr/share/gajim/gajim.py
34
35binary-indep: checkroot build
36        $(checkdir)
37# There are no architecture-independent files to be uploaded
38# generated by this package.  If there were any they would be
39# made here.
40
41binary-arch: checkroot build install
42        $(checkdir)
43# Must have debmake installed for this to work. Otherwise please copy
44# /usr/bin/debstd into the debian directory and change debstd to debian/debstd
45        debstd
46        dpkg-gencontrol -isp
47        chown -R root:root debian/tmp
48        chmod -R go=rX debian/tmp
49        dpkg --build debian/tmp ..
50
51define checkdir
52        test -f debian/rules
53endef
54
55binary: binary-indep binary-arch
56
57checkroot:
58        $(checkdir)
59        test root = "`whoami`"
60
61.PHONY: binary binary-arch binary-indep clean checkroot
Note: See TracBrowser for help on using the browser.