Blame


1 da9456db 2003-07-09 alex #!/usr/bin/make -f
2 da9456db 2003-07-09 alex # debian/rules for ngIRCd
3 da9456db 2003-07-09 alex #
4 da9456db 2003-07-09 alex # $Id: rules,v 1.1 2003/07/09 20:23:35 alex Exp $
5 da9456db 2003-07-09 alex #
6 da9456db 2003-07-09 alex # Based on the sample debian/rules that uses debhelper,
7 da9456db 2003-07-09 alex # GNU copyright 1997 to 1999 by Joey Hess.
8 da9456db 2003-07-09 alex #
9 da9456db 2003-07-09 alex
10 da9456db 2003-07-09 alex # Uncomment this to turn on verbose mode.
11 da9456db 2003-07-09 alex #export DH_VERBOSE=1
12 da9456db 2003-07-09 alex
13 da9456db 2003-07-09 alex # These are used for cross-compiling and for saving the configure script
14 da9456db 2003-07-09 alex # from having to guess our platform (since we know it already)
15 da9456db 2003-07-09 alex DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16 da9456db 2003-07-09 alex DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17 da9456db 2003-07-09 alex
18 da9456db 2003-07-09 alex CFLAGS = -Wall -g
19 da9456db 2003-07-09 alex
20 da9456db 2003-07-09 alex ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
21 da9456db 2003-07-09 alex CFLAGS += -O0
22 da9456db 2003-07-09 alex else
23 da9456db 2003-07-09 alex CFLAGS += -O2
24 da9456db 2003-07-09 alex endif
25 da9456db 2003-07-09 alex ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26 da9456db 2003-07-09 alex INSTALL_PROGRAM += -s
27 da9456db 2003-07-09 alex endif
28 da9456db 2003-07-09 alex
29 da9456db 2003-07-09 alex config.status: configure
30 da9456db 2003-07-09 alex dh_testdir
31 da9456db 2003-07-09 alex # Add here commands to configure the package.
32 da9456db 2003-07-09 alex ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
33 da9456db 2003-07-09 alex --prefix=/usr --sysconfdir=/etc/ngircd --mandir=\$${prefix}/share/man \
34 da9456db 2003-07-09 alex --with-syslog --with-zlib
35 da9456db 2003-07-09 alex
36 da9456db 2003-07-09 alex build: build-stamp
37 da9456db 2003-07-09 alex
38 da9456db 2003-07-09 alex build-stamp: config.status
39 da9456db 2003-07-09 alex dh_testdir
40 da9456db 2003-07-09 alex
41 da9456db 2003-07-09 alex # Add here commands to compile the package.
42 da9456db 2003-07-09 alex $(MAKE)
43 da9456db 2003-07-09 alex
44 da9456db 2003-07-09 alex touch build-stamp
45 da9456db 2003-07-09 alex
46 da9456db 2003-07-09 alex clean:
47 da9456db 2003-07-09 alex dh_testdir
48 da9456db 2003-07-09 alex dh_testroot
49 da9456db 2003-07-09 alex rm -f build-stamp
50 da9456db 2003-07-09 alex
51 da9456db 2003-07-09 alex # Add here commands to clean up after the build process.
52 da9456db 2003-07-09 alex -$(MAKE) distclean
53 da9456db 2003-07-09 alex ifneq "$(wildcard /usr/share/misc/config.sub)" ""
54 da9456db 2003-07-09 alex cp -f /usr/share/misc/config.sub config.sub
55 da9456db 2003-07-09 alex endif
56 da9456db 2003-07-09 alex ifneq "$(wildcard /usr/share/misc/config.guess)" ""
57 da9456db 2003-07-09 alex cp -f /usr/share/misc/config.guess config.guess
58 da9456db 2003-07-09 alex endif
59 da9456db 2003-07-09 alex dh_clean
60 da9456db 2003-07-09 alex
61 da9456db 2003-07-09 alex install: build
62 da9456db 2003-07-09 alex dh_testdir
63 da9456db 2003-07-09 alex dh_testroot
64 da9456db 2003-07-09 alex dh_clean -k
65 da9456db 2003-07-09 alex dh_installdirs
66 da9456db 2003-07-09 alex
67 da9456db 2003-07-09 alex # Add here commands to install the package into debian/ngircd.
68 da9456db 2003-07-09 alex $(MAKE) install DESTDIR=$(CURDIR)/debian/ngircd
69 da9456db 2003-07-09 alex
70 da9456db 2003-07-09 alex
71 da9456db 2003-07-09 alex # Build architecture-independent files here.
72 da9456db 2003-07-09 alex binary-indep: build install
73 da9456db 2003-07-09 alex # We have nothing to do by default.
74 da9456db 2003-07-09 alex
75 da9456db 2003-07-09 alex # Build architecture-dependent files here.
76 da9456db 2003-07-09 alex binary-arch: build install
77 da9456db 2003-07-09 alex dh_testdir
78 da9456db 2003-07-09 alex dh_testroot
79 da9456db 2003-07-09 alex dh_installchangelogs ChangeLog
80 da9456db 2003-07-09 alex dh_installdocs
81 da9456db 2003-07-09 alex dh_installinit
82 da9456db 2003-07-09 alex dh_strip
83 da9456db 2003-07-09 alex dh_compress
84 da9456db 2003-07-09 alex dh_fixperms -Xetc/ngircd.conf
85 da9456db 2003-07-09 alex dh_installdeb
86 da9456db 2003-07-09 alex dh_shlibdeps
87 da9456db 2003-07-09 alex dh_gencontrol
88 da9456db 2003-07-09 alex dh_md5sums
89 da9456db 2003-07-09 alex dh_builddeb
90 da9456db 2003-07-09 alex
91 da9456db 2003-07-09 alex binary: binary-indep binary-arch
92 da9456db 2003-07-09 alex .PHONY: build clean binary-indep binary-arch binary install
93 da9456db 2003-07-09 alex
94 da9456db 2003-07-09 alex # -eof-