Makefile.m4
Upload User: xu_441
Upload Date: 2007-01-04
Package Size: 1640k
Code Size: 2k
Category:

Email Client

Development Platform:

Unix_Linux

  1. include(confBUILDTOOLSDIR`/M4/switch.m4')
  2. bldPRODUCT_START(`executable', `sendmail')
  3. define(`bldBIN_TYPE', `S')
  4. define(`bldINSTALL_DIR', `')
  5. define(`bldSOURCES', `alias.c arpadate.c bf_'ifdef(`confSTDIO_TYPE', `confSTDIO_TYPE', `portable')`.c clock.c collect.c conf.c control.c convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c readcf.c recipient.c savemail.c sfsasl.c shmticklib.c srvrsmtp.c stab.c stats.c sysexits.c timers.c trace.c udb.c usersmtp.c util.c version.c ')
  6. PREPENDDEF(`confENVDEF', `confMAPDEF')
  7. bldPUSH_SMLIB(`smutil')
  8. define(`bldTARGET_LINKS', ifdef(`confLINKS', `confLINKS',
  9. `${DESTDIR}${UBINDIR}/newaliases ${DESTDIR}${UBINDIR}/mailq ${DESTDIR}${UBINDIR}/hoststat ${DESTDIR}${UBINDIR}/purgestat')
  10. )dnl
  11. # location of sendmail statistics file (usually /etc/mail/ or /var/log)
  12. STDIR= ifdef(`confSTDIR', `confSTDIR', `/etc/mail')
  13. # full path to installed statistics file (usually ${STDIR}/statistics)
  14. STFILE= ${STDIR}/ifdef(`confSTFILE', `confSTFILE', `statistics')
  15. # location of sendmail helpfile file (usually /etc/mail)
  16. HFDIR= ifdef(`confHFDIR', `confHFDIR', `/etc/mail')
  17. # full path to installed help file (usually ${HFDIR}/helpfile)
  18. HFFILE= ${HFDIR}/ifdef(`confHFFILE', `confHFFILE', `helpfile')
  19. ifdef(`confSMSRCADD', `APPENDDEF(`confSRCADD', `confSMSRCADD')')
  20. ifdef(`confSMOBJADD', `APPENDDEF(`confOBJADD', `confSMOBJADD')')
  21. bldPUSH_TARGET(`statistics')
  22. divert(bldTARGETS_SECTION)
  23. statistics:
  24. ${CP} /dev/null statistics
  25. divert(0)
  26. ifdef(`confNO_HELPFILE_INSTALL',, `bldPUSH_INSTALL_TARGET(`install-hf')')
  27. ifdef(`confNO_STATISTICS_INSTALL',, `bldPUSH_INSTALL_TARGET(`install-st')')
  28. divert(bldTARGETS_SECTION)
  29. install-hf:
  30. if [ ! -d ${DESTDIR}${HFDIR} ]; then mkdir -p ${DESTDIR}${HFDIR}; fi
  31. ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m 444 helpfile ${DESTDIR}${HFFILE}
  32. install-st: statistics
  33. if [ ! -d ${DESTDIR}${STDIR} ]; then mkdir -p ${DESTDIR}${STDIR}; fi
  34. ${INSTALL} -c -o ${SBINOWN} -g ${UBINGRP} -m 644 statistics ${DESTDIR}${STFILE}
  35. divert(0)
  36. bldPRODUCT_END
  37. bldPRODUCT_START(`manpage', `sendmail')
  38. define(`bldSOURCES', `sendmail.8 aliases.5 mailq.1 newaliases.1')
  39. bldPRODUCT_END
  40. bldFINISH