Merge from vendor branch LIBSTDC++:
[dragonfly.git] / contrib / sendmail / rmail / Makefile.m4
1 dnl $Id: Makefile.m4,v 8.42.4.1 2002/06/21 21:58:46 ca Exp $
2 include(confBUILDTOOLSDIR`/M4/switch.m4')
3
4 define(`confREQUIRE_LIBSM', `true')
5 # sendmail dir
6 SMSRCDIR=     ifdef(`confSMSRCDIR', `confSMSRCDIR', `${SRCDIR}/sendmail')
7 PREPENDDEF(`confENVDEF', `confMAPDEF')
8 PREPENDDEF(`confINCDIRS', `-I${SMSRCDIR} ')
9
10 bldPRODUCT_START(`executable', `rmail')
11 define(`bldNO_INSTALL', `true')
12 define(`bldSOURCES', `rmail.c ')
13 bldPUSH_SMLIB(`sm')
14 bldPRODUCT_END
15
16 bldPRODUCT_START(`manpage', `rmail')
17 define(`bldSOURCES', `rmail.8')
18 bldPRODUCT_END
19
20 RMAIL=ifdef(`confFORCE_RMAIL', `force-install', `defeat-install')
21
22 divert(bldTARGETS_SECTION)
23 install: ${RMAIL}
24
25 defeat-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
30 force-install: install-rmail ifdef(`confNO_MAN_BUILD',, `install-docs')
31
32 install-rmail: rmail
33         ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m ${UBINMODE} rmail ${DESTDIR}${UBINDIR}
34 divert
35
36 bldFINISH
37