xref: /freebsd/contrib/sendmail/mail.local/Makefile.m4 (revision 0b3105a37d7adcadcb720112fed4dc4e8040be99)
1dnl $Id: Makefile.m4,v 8.52 2006-06-28 21:08:02 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', `mail.local')
12define(`bldINSTALL_DIR', `E')
13define(`bldNO_INSTALL', `true')
14define(`bldSOURCES', `mail.local.c ')
15bldPUSH_SMLIB(`sm')
16APPENDDEF(`confENVDEF', `-DNOT_SENDMAIL')
17bldPRODUCT_END
18
19bldPRODUCT_START(`manpage', `mail.local')
20define(`bldSOURCES', `mail.local.8')
21bldPRODUCT_END
22
23divert(bldTARGETS_SECTION)
24install:
25	@echo "NOTE: This version of mail.local is not suited for some operating"
26	@echo "      systems such as HP-UX and Solaris.  Please consult the"
27	@echo "      README file in the mail.local directory.  You can force"
28	@echo "      the install using 'Build force-install'."
29
30force-install: install-mail.local ifdef(`confNO_MAN_BUILD',, `install-docs')
31
32install-mail.local: mail.local
33	${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m ${UBINMODE} mail.local ${DESTDIR}${EBINDIR}
34divert
35
36bldFINISH
37