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