root/branches/gajim_0.7.1/debian/rules

Revision 1815, 1.2 kB (checked in by asterix, 4 years ago)

this is now done in make install

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