File: rules

package info (click to toggle)
mailutils 1%3A0.6.1-4sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,568 kB
  • ctags: 11,612
  • sloc: ansic: 111,948; sh: 8,899; yacc: 4,338; makefile: 2,235; exp: 2,190; lex: 1,379; lisp: 688; awk: 202; pascal: 151; sed: 23
file content (50 lines) | stat: -rwxr-xr-x 1,691 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/make -f
# This file is PUBLIC DOMAIN. © 2001,2003 Jeff Bailey, Jordi Mallach.

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
   RUNTESTFLAGS = -v -v -v --debug
endif

DEB_CONFIGURE_USER_FLAGS := \
	--with-lispdir=\$${prefix}/share/emacs/site-lisp \
	--enable-virtual-domains --enable-mh-utils \
	--with-gnutls --with-gdbm --with-gssapi --with-gsasl \
	--with-mysql --disable-rpath 

DEB_MAKE_CHECK_TARGET =	check RUNTESTFLAGS="$(RUNTESTFLAGS)"

build/mailutils-doc::
	$(DEB_MAKE_INVOKE) html

clean::
	rm -f *.1 *.8

install/mailutils::
	# These binaries conflict with elm-me. We need to rename them, as
	# we're using alternatives for them.
	cd debian/tmp; \
	for i in dotlock frm from messages movemail readmsg; do \
	   mv usr/bin/$$i usr/bin/$$i.mailutils; \
	done
	install -d -m 755 $(CURDIR)/debian/tmp/etc
	install -m 644 -p $(CURDIR)/debian/mail.rc $(CURDIR)/debian/tmp/etc/mail.rc
	# Generate manpages, but remove the s[ug]id bits from binaries
	# so LD_LIBRARY_PATH works.
	chmod 755 $(CURDIR)/debian/tmp/usr/bin/dotlock.mailutils
	sh debian/mangen.sh $(CURDIR)/debian/tmp/usr
	# Restore correct perms to the binaries that need it.
	chmod 2755 $(CURDIR)/debian/tmp/usr/bin/dotlock.mailutils

DEB_FIXPERMS_EXCLUDE = dotlock.mailutils
DEB_INSTALL_CHANGELOGS_ALL :=
DEB_INSTALL_CHANGELOGS_mailutils-doc = ChangeLog

DEB_INSTALL_DOCS_mailutils-doc = AUTHORS NEWS README THANKS TODO \
	doc/texinfo/mailutils.html
DEB_INSTALL_DOCS_mailutils-mh = mh/README mh/TODO

DEB_SHLIBDEPS_INCLUDE := $(CURDIR)/debian/libmailutils0/usr/lib