2
# Made with the aid of debmake, by Christoph Lameter,
3
# based on the sample debian/rules file for GNU hello by Ian Jackson.
3
# Sample debian/rules that uses debhelper.
4
# This file was originally written by Joey Hess and Craig Small.
5
# As a special exception, when this file is copied by dh-make into a
6
# dh-make output file, you may use that output file without restriction.
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
9
# Uncomment this to turn on verbose mode.
12
include /usr/share/quilt/quilt.make
16
build: $(QUILT_STAMPFN) build-stamp
10
./configure --prefix=/usr \
11
--with-docdir=/usr/share/doc/gnarwl \
12
--with-homedir=/var/lib/gnarwl \
14
--mandir=/usr/share/man \
15
--with-mta=/usr/sbin/sendmail
19
./configure --prefix=$(CURDIR)/debian/$(package)/usr \
20
--mandir=$(CURDIR)/debian/$(package)/usr/share/man \
21
--sysconfdir=$(CURDIR)/debian/$(package)/etc \
22
--with-docdir=$(CURDIR)/debian/$(package)/usr/share/doc/gnarwl \
23
--with-homedir=$(CURDIR)/debian/$(package)/var/lib/gnarwl \
24
--with-mta=/usr/sbin/sendmail
17
25
$(MAKE) CFLAGS="-O2 -g -Wall -I.."
23
31
rm -f build-stamp install-stamp
25
32
[ ! -f Makefile ] || $(MAKE) distclean
26
33
rm -f `find . -name "*~"`
27
34
rm -rf debian/files* core
34
38
install: install-stamp
35
39
install-stamp: build-stamp
41
# Add here commands to install the package
42
$(MAKE) install prefix=`pwd`/debian/$(package)/usr DESTDIR=`pwd`/debian/$(package)
43
rm `pwd`/debian/$(package)/usr/share/doc/gnarwl/INSTALL || true
44
$(MAKE) install prefix=$(CURDIR)/debian/$(package)/usr DESTDIR=$(CURDIR)/debian/$(package)
45
rm $(CURDIR)/debian/$(package)/usr/share/doc/gnarwl/INSTALL || true
46
rm -fr $(CURDIR)/debian/$(package)/etc/ldap || true
47
rm -fr $(CURDIR)/debian/$(package)/var/lib/gnarwl/bin || true
48
rm -fr $(CURDIR)/debian/$(package)/usr/share/doc/gnarwl/LICENSE || true
45
49
touch install-stamp
47
51
binary-indep: build install