2007-04-09 01:38:51 +00:00
|
|
|
dnl $Id: Makefile.m4,v 8.44 2006/06/28 21:08:04 ca Exp $
|
2000-08-12 21:55:49 +00:00
|
|
|
include(confBUILDTOOLSDIR`/M4/switch.m4')
|
1998-08-03 05:56:20 +00:00
|
|
|
|
2002-02-17 21:56:45 +00:00
|
|
|
define(`confREQUIRE_LIBSM', `true')
|
2007-04-09 01:38:51 +00:00
|
|
|
define(`confREQUIRE_SM_OS_H', `true')
|
2000-10-01 01:49:02 +00:00
|
|
|
# sendmail dir
|
|
|
|
SMSRCDIR= ifdef(`confSMSRCDIR', `confSMSRCDIR', `${SRCDIR}/sendmail')
|
2000-08-12 21:55:49 +00:00
|
|
|
PREPENDDEF(`confENVDEF', `confMAPDEF')
|
2000-10-01 01:49:02 +00:00
|
|
|
PREPENDDEF(`confINCDIRS', `-I${SMSRCDIR} ')
|
1998-08-03 05:56:20 +00:00
|
|
|
|
2000-08-12 21:55:49 +00:00
|
|
|
bldPRODUCT_START(`executable', `rmail')
|
2002-02-17 21:56:45 +00:00
|
|
|
define(`bldNO_INSTALL', `true')
|
2000-08-12 21:55:49 +00:00
|
|
|
define(`bldSOURCES', `rmail.c ')
|
2002-02-17 21:56:45 +00:00
|
|
|
bldPUSH_SMLIB(`sm')
|
2000-08-12 21:55:49 +00:00
|
|
|
bldPRODUCT_END
|
1998-08-03 05:56:20 +00:00
|
|
|
|
2000-08-12 21:55:49 +00:00
|
|
|
bldPRODUCT_START(`manpage', `rmail')
|
|
|
|
define(`bldSOURCES', `rmail.8')
|
|
|
|
bldPRODUCT_END
|
1998-08-03 05:56:20 +00:00
|
|
|
|
2000-08-12 21:55:49 +00:00
|
|
|
RMAIL=ifdef(`confFORCE_RMAIL', `force-install', `defeat-install')
|
1998-08-03 05:56:20 +00:00
|
|
|
|
2000-08-12 21:55:49 +00:00
|
|
|
divert(bldTARGETS_SECTION)
|
|
|
|
install: ${RMAIL}
|
1998-08-03 05:56:20 +00:00
|
|
|
|
2000-08-12 21:55:49 +00:00
|
|
|
defeat-install:
|
1998-08-03 05:56:20 +00:00
|
|
|
@echo "NOTE: This version of rmail is not suited for some operating"
|
|
|
|
@echo " systems. You can force the install using"
|
2000-08-12 21:55:49 +00:00
|
|
|
@echo " 'Build force-install'."
|
1998-08-03 05:56:20 +00:00
|
|
|
|
2000-08-12 21:55:49 +00:00
|
|
|
force-install: install-rmail ifdef(`confNO_MAN_BUILD',, `install-docs')
|
1998-08-03 05:56:20 +00:00
|
|
|
|
|
|
|
install-rmail: rmail
|
2000-08-12 21:55:49 +00:00
|
|
|
${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m ${UBINMODE} rmail ${DESTDIR}${UBINDIR}
|
|
|
|
divert
|
1998-08-03 05:56:20 +00:00
|
|
|
|
2000-08-12 21:55:49 +00:00
|
|
|
bldFINISH
|
1998-08-03 05:56:20 +00:00
|
|
|
|