2 # debian/rules for ngIRCd
4 # $Id: rules,v 1.1 2003/07/09 20:23:35 alex Exp $
6 # Based on the sample debian/rules that uses debhelper,
7 # GNU copyright 1997 to 1999 by Joey Hess.
10 # Uncomment this to turn on verbose mode.
13 # These are used for cross-compiling and for saving the configure script
14 # from having to guess our platform (since we know it already)
15 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
20 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
29 config.status: configure
31 # Add here commands to configure the package.
32 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
33 --prefix=/usr --sysconfdir=/etc/ngircd --mandir=\$${prefix}/share/man \
34 --with-syslog --with-zlib
38 build-stamp: config.status
41 # Add here commands to compile the package.
51 # Add here commands to clean up after the build process.
53 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
54 cp -f /usr/share/misc/config.sub config.sub
56 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
57 cp -f /usr/share/misc/config.guess config.guess
67 # Add here commands to install the package into debian/ngircd.
68 $(MAKE) install DESTDIR=$(CURDIR)/debian/ngircd
71 # Build architecture-independent files here.
72 binary-indep: build install
73 # We have nothing to do by default.
75 # Build architecture-dependent files here.
76 binary-arch: build install
79 dh_installchangelogs ChangeLog
84 dh_fixperms -Xetc/ngircd.conf
91 binary: binary-indep binary-arch
92 .PHONY: build clean binary-indep binary-arch binary install