4 # Uncomment this to turn on verbose mode.
7 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18 config.status: configure
20 rm -f config.sub config.guess
21 ln -sf /usr/share/misc/config.sub config.sub
22 ln -sf /usr/share/misc/config.guess config.guess
24 --host=$(DEB_HOST_GNU_TYPE) \
25 --build=$(DEB_BUILD_GNU_TYPE) \
27 --mandir=\$${prefix}/share/man \
28 --infodir=\$${prefix}/share/info \
29 --docdir=\$${prefix}/share/doc/silcd \
30 --sysconfdir=/etc/silcd \
31 --with-silcd-config-file=/etc/silcd/silcd.conf \
32 --localstatedir=/var/run \
33 --with-logsdir=/var/log/silcd \
39 build-stamp: config.status
41 # the following are crude hacks to get around the autotools problem on
42 # build because these directories are missing, notified upstream
43 mkdir -p $(CURDIR)/lib/silcutil/win32
44 mkdir -p $(CURDIR)/lib/silcutil/symbian
53 [ ! -f Makefile ] || $(MAKE) distclean
54 rm -f config.sub config.guess
62 $(MAKE) DESTDIR=$(CURDIR)/debian/silcd install
63 rm -f $(CURDIR)/debian/silcd/usr/share/doc/silcd/COPYING
64 rm -f $(CURDIR)/debian/silcd/usr/share/doc/silcd/INSTALL
65 rm -f $(CURDIR)/debian/silcd/etc/silcd/silcd.conf
67 # Build architecture-independent files here.
68 binary-indep: build install
69 # We have nothing to do.
71 # Build architecture-dependent files here.
72 binary-arch: build install
75 dh_installchangelogs ChangeLog
82 dh_strip --dbg-package=silcd-dbg
91 binary: binary-indep binary-arch
92 .PHONY: build clean binary-indep binary-arch binary install