3 # ngIRCd -- The Next Generation IRC Daemon
4 # Copyright (c)2001-2003 by Alexander Barton (alex@barton.de)
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 # Please read the file COPYING, README and AUTHORS for more information.
12 # debian/rules for ngIRCd
14 # $Id: rules,v 1.2 2003/11/29 20:29:09 alex Exp $
16 # Based on the sample debian/rules that uses debhelper,
17 # GNU copyright 1997 to 1999 by Joey Hess.
20 # Uncomment this to turn on verbose mode.
23 # These are used for cross-compiling and for saving the configure script
24 # from having to guess our platform (since we know it already)
25 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
26 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
30 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
35 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
39 config.status: configure
42 # Add here commands to configure the package.
43 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
45 --sysconfdir=/etc/ngircd \
46 --mandir=\$${prefix}/share/man \
47 --with-syslog --with-zlib
51 build-stamp: config.status
54 # Add here commands to compile the package.
64 # Add here commands to clean up after the build process.
67 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
68 cp -f /usr/share/misc/config.sub config.sub
70 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
71 cp -f /usr/share/misc/config.guess config.guess
81 # Add here commands to install the package into debian/ngircd.
82 $(MAKE) install DESTDIR=$(CURDIR)/debian/ngircd
83 rm -f $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/INSTALL*
84 rm -f $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/COPYING*
86 # Build architecture-independent files here.
87 binary-indep: build install
88 # We have nothing to do by default.
90 # Build architecture-dependent files here.
91 binary-arch: build install
94 dh_installchangelogs ChangeLog
106 binary: binary-indep binary-arch
108 .PHONY: build clean binary-indep binary-arch binary install