xref: /freebsd/contrib/sendmail/rmail/Makefile.m4 (revision d4eeb02986980bf33dd56c41ceb9fc5f180c0d47)
1dnl $Id: Makefile.m4,v 8.44 2006-06-28 21:08:04 ca Exp $
2include(confBUILDTOOLSDIR`/M4/switch.m4')
3
4define(`confREQUIRE_LIBSM', `true')
5define(`confREQUIRE_SM_OS_H', `true')
6# sendmail dir
7SMSRCDIR=     ifdef(`confSMSRCDIR', `confSMSRCDIR', `${SRCDIR}/sendmail')
8PREPENDDEF(`confENVDEF', `confMAPDEF')
9PREPENDDEF(`confINCDIRS', `-I${SMSRCDIR} ')
10
11bldPRODUCT_START(`executable', `rmail')
12define(`bldNO_INSTALL', `true')
13define(`bldSOURCES', `rmail.c ')
14bldPUSH_SMLIB(`sm')
15bldPRODUCT_END
16
17bldPRODUCT_START(`manpage', `rmail')
18define(`bldSOURCES', `rmail.8')
19bldPRODUCT_END
20
21RMAIL=ifdef(`confFORCE_RMAIL', `force-install', `defeat-install')
22
23divert(bldTARGETS_SECTION)
24install: ${RMAIL}
25
26defeat-install:
27	@echo "NOTE: This version of rmail is not suited for some operating"
28	@echo "      systems.  You can force the install using"
29	@echo "      'Build force-install'."
30
31force-install: install-rmail ifdef(`confNO_MAN_BUILD',, `install-docs')
32
33install-rmail: rmail
34	${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m ${UBINMODE} rmail ${DESTDIR}${UBINDIR}
35divert
36
37bldFINISH
38
39