|
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 | |
|---|
| 5 | package=gajim |
|---|
| 6 | |
|---|
| 7 | build: build-stamp |
|---|
| 8 | build-stamp: |
|---|
| 9 | $(checkdir) |
|---|
| 10 | |
|---|
| 11 | make |
|---|
| 12 | touch build |
|---|
| 13 | |
|---|
| 14 | clean: |
|---|
| 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 | |
|---|
| 21 | install: install-stamp |
|---|
| 22 | install-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 | |
|---|
| 29 | binary-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 | |
|---|
| 35 | binary-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 | |
|---|
| 45 | define checkdir |
|---|
| 46 | test -f debian/rules |
|---|
| 47 | endef |
|---|
| 48 | |
|---|
| 49 | binary: binary-indep binary-arch |
|---|
| 50 | |
|---|
| 51 | checkroot: |
|---|
| 52 | $(checkdir) |
|---|
| 53 | test root = "`whoami`" |
|---|
| 54 | |
|---|
| 55 | .PHONY: binary binary-arch binary-indep clean checkroot |
|---|