Blame


1 da9456db 2003-07-09 alex #!/usr/bin/make -f
2 606cdb69 2003-11-29 alex #
3 606cdb69 2003-11-29 alex # ngIRCd -- The Next Generation IRC Daemon
4 606cdb69 2003-11-29 alex # Copyright (c)2001-2003 by Alexander Barton (alex@barton.de)
5 606cdb69 2003-11-29 alex #
6 606cdb69 2003-11-29 alex # This program is free software; you can redistribute it and/or modify
7 606cdb69 2003-11-29 alex # it under the terms of the GNU General Public License as published by
8 606cdb69 2003-11-29 alex # the Free Software Foundation; either version 2 of the License, or
9 606cdb69 2003-11-29 alex # (at your option) any later version.
10 606cdb69 2003-11-29 alex # Please read the file COPYING, README and AUTHORS for more information.
11 606cdb69 2003-11-29 alex #
12 da9456db 2003-07-09 alex # debian/rules for ngIRCd
13 da9456db 2003-07-09 alex #
14 606cdb69 2003-11-29 alex # $Id: rules,v 1.2 2003/11/29 20:29:09 alex Exp $
15 da9456db 2003-07-09 alex #
16 da9456db 2003-07-09 alex # Based on the sample debian/rules that uses debhelper,
17 da9456db 2003-07-09 alex # GNU copyright 1997 to 1999 by Joey Hess.
18 da9456db 2003-07-09 alex #
19 da9456db 2003-07-09 alex
20 da9456db 2003-07-09 alex # Uncomment this to turn on verbose mode.
21 da9456db 2003-07-09 alex #export DH_VERBOSE=1
22 da9456db 2003-07-09 alex
23 da9456db 2003-07-09 alex # These are used for cross-compiling and for saving the configure script
24 da9456db 2003-07-09 alex # from having to guess our platform (since we know it already)
25 606cdb69 2003-11-29 alex DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
26 606cdb69 2003-11-29 alex DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
27 da9456db 2003-07-09 alex
28 da9456db 2003-07-09 alex CFLAGS = -Wall -g
29 da9456db 2003-07-09 alex
30 da9456db 2003-07-09 alex ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
31 da9456db 2003-07-09 alex CFLAGS += -O0
32 da9456db 2003-07-09 alex else
33 da9456db 2003-07-09 alex CFLAGS += -O2
34 da9456db 2003-07-09 alex endif
35 da9456db 2003-07-09 alex ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
36 da9456db 2003-07-09 alex INSTALL_PROGRAM += -s
37 da9456db 2003-07-09 alex endif
38 da9456db 2003-07-09 alex
39 da9456db 2003-07-09 alex config.status: configure
40 da9456db 2003-07-09 alex dh_testdir
41 606cdb69 2003-11-29 alex
42 da9456db 2003-07-09 alex # Add here commands to configure the package.
43 da9456db 2003-07-09 alex ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
44 606cdb69 2003-11-29 alex --prefix=/usr \
45 606cdb69 2003-11-29 alex --sysconfdir=/etc/ngircd \
46 606cdb69 2003-11-29 alex --mandir=\$${prefix}/share/man \
47 da9456db 2003-07-09 alex --with-syslog --with-zlib
48 da9456db 2003-07-09 alex
49 da9456db 2003-07-09 alex build: build-stamp
50 da9456db 2003-07-09 alex
51 606cdb69 2003-11-29 alex build-stamp: config.status
52 da9456db 2003-07-09 alex dh_testdir
53 da9456db 2003-07-09 alex
54 da9456db 2003-07-09 alex # Add here commands to compile the package.
55 da9456db 2003-07-09 alex $(MAKE)
56 da9456db 2003-07-09 alex
57 da9456db 2003-07-09 alex touch build-stamp
58 da9456db 2003-07-09 alex
59 da9456db 2003-07-09 alex clean:
60 da9456db 2003-07-09 alex dh_testdir
61 da9456db 2003-07-09 alex dh_testroot
62 da9456db 2003-07-09 alex rm -f build-stamp
63 da9456db 2003-07-09 alex
64 da9456db 2003-07-09 alex # Add here commands to clean up after the build process.
65 da9456db 2003-07-09 alex -$(MAKE) distclean
66 606cdb69 2003-11-29 alex
67 da9456db 2003-07-09 alex ifneq "$(wildcard /usr/share/misc/config.sub)" ""
68 da9456db 2003-07-09 alex cp -f /usr/share/misc/config.sub config.sub
69 da9456db 2003-07-09 alex endif
70 da9456db 2003-07-09 alex ifneq "$(wildcard /usr/share/misc/config.guess)" ""
71 da9456db 2003-07-09 alex cp -f /usr/share/misc/config.guess config.guess
72 da9456db 2003-07-09 alex endif
73 da9456db 2003-07-09 alex dh_clean
74 da9456db 2003-07-09 alex
75 da9456db 2003-07-09 alex install: build
76 da9456db 2003-07-09 alex dh_testdir
77 da9456db 2003-07-09 alex dh_testroot
78 da9456db 2003-07-09 alex dh_clean -k
79 da9456db 2003-07-09 alex dh_installdirs
80 da9456db 2003-07-09 alex
81 da9456db 2003-07-09 alex # Add here commands to install the package into debian/ngircd.
82 da9456db 2003-07-09 alex $(MAKE) install DESTDIR=$(CURDIR)/debian/ngircd
83 606cdb69 2003-11-29 alex rm -f $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/INSTALL*
84 606cdb69 2003-11-29 alex rm -f $(CURDIR)/debian/ngircd/usr/share/doc/ngircd/COPYING*
85 da9456db 2003-07-09 alex
86 da9456db 2003-07-09 alex # Build architecture-independent files here.
87 da9456db 2003-07-09 alex binary-indep: build install
88 606cdb69 2003-11-29 alex # We have nothing to do by default.
89 da9456db 2003-07-09 alex
90 da9456db 2003-07-09 alex # Build architecture-dependent files here.
91 da9456db 2003-07-09 alex binary-arch: build install
92 da9456db 2003-07-09 alex dh_testdir
93 da9456db 2003-07-09 alex dh_testroot
94 da9456db 2003-07-09 alex dh_installchangelogs ChangeLog
95 da9456db 2003-07-09 alex dh_installdocs
96 da9456db 2003-07-09 alex dh_installinit
97 da9456db 2003-07-09 alex dh_strip
98 da9456db 2003-07-09 alex dh_compress
99 606cdb69 2003-11-29 alex dh_fixperms
100 da9456db 2003-07-09 alex dh_installdeb
101 da9456db 2003-07-09 alex dh_shlibdeps
102 da9456db 2003-07-09 alex dh_gencontrol
103 da9456db 2003-07-09 alex dh_md5sums
104 da9456db 2003-07-09 alex dh_builddeb
105 da9456db 2003-07-09 alex
106 da9456db 2003-07-09 alex binary: binary-indep binary-arch
107 606cdb69 2003-11-29 alex
108 da9456db 2003-07-09 alex .PHONY: build clean binary-indep binary-arch binary install
109 da9456db 2003-07-09 alex
110 da9456db 2003-07-09 alex # -eof-