cf-Makefile 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. # $OpenBSD: cf-Makefile,v 1.1.1.1 2014/09/16 17:09:31 jca Exp $
  2. #
  3. # Makefile for configuration files.
  4. #
  5. # $Sendmail: Makefile,v 8.60 2005/06/14 02:16:34 gshapiro Exp $
  6. #
  7. #
  8. # Create configuration files using "m4 ../m4/cf.m4 file.mc > file.cf";
  9. # this may be easier than tweaking the Makefile.
  10. M4= /usr/bin/m4
  11. CFDIR= ${.CURDIR}/..
  12. SED= sed
  13. ECHO= echo
  14. CHMOD= chmod
  15. ROMODE= 444
  16. RM= rm -f
  17. .SUFFIXES: .mc .cf
  18. .mc.cf:
  19. $(RM) $@
  20. ( cd ${.CURDIR} && $(M4) ${CFDIR}/m4/cf.m4 ${@:R}.mc > ${.OBJDIR}/$@ )
  21. $(ECHO) "### $*.mc ###" >>$@
  22. $(SED) -e 's/^/# /' ${.CURDIR}/$*.mc >>$@
  23. $(CHMOD) $(ROMODE) $@
  24. ALL= openbsd-submit.cf clientproto.cf tcpproto.cf openbsd-localhost.cf \
  25. openbsd-proto.cf openbsd-lists.cf openbsd-bulk.cf
  26. all: $(ALL)
  27. cleandir: clean
  28. clean:
  29. $(RM) $(ALL) *.core
  30. depend:
  31. install:
  32. @if test -e ${DESTDIR}/etc/mail/sendmail.cf; then \
  33. if test ! -e ${DESTDIR}/etc/mail/submit.cf; then \
  34. echo "WARNING: installed missing ${DESTDIR}/etc/mail/submit.cf"; \
  35. echo "You should probably rebuild ${DESTDIR}/etc/mail/sendmail.cf"; \
  36. ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
  37. openbsd-submit.cf ${DESTDIR}/etc/mail/submit.cf; \
  38. fi; \
  39. if test ! -e ${DESTDIR}/etc/mail/localhost.cf; then \
  40. echo "WARNING: installed missing ${DESTDIR}/etc/mail/localhost.cf"; \
  41. ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
  42. openbsd-localhost.cf ${DESTDIR}/etc/mail/localhost.cf; \
  43. fi; \
  44. fi
  45. distribution: openbsd-proto.cf openbsd-localhost.cf openbsd-submit.cf
  46. ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 openbsd-proto.cf \
  47. ${DESTDIR}/etc/mail/sendmail.cf
  48. ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 openbsd-localhost.cf \
  49. ${DESTDIR}/etc/mail/localhost.cf
  50. ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 openbsd-submit.cf \
  51. ${DESTDIR}/etc/mail/submit.cf
  52. # this is overkill, but....
  53. M4FILES=\
  54. ${CFDIR}/domain/Berkeley.EDU.m4 \
  55. ${CFDIR}/domain/CS.Berkeley.EDU.m4 \
  56. ${CFDIR}/domain/EECS.Berkeley.EDU.m4 \
  57. ${CFDIR}/domain/S2K.Berkeley.EDU.m4 \
  58. ${CFDIR}/domain/berkeley-only.m4 \
  59. ${CFDIR}/domain/generic.m4 \
  60. ${CFDIR}/feature/accept_unqualified_senders.m4 \
  61. ${CFDIR}/feature/accept_unresolvable_domains.m4 \
  62. ${CFDIR}/feature/access_db.m4 \
  63. ${CFDIR}/feature/allmasquerade.m4 \
  64. ${CFDIR}/feature/always_add_domain.m4 \
  65. ${CFDIR}/feature/authinfo.m4 \
  66. ${CFDIR}/feature/bestmx_is_local.m4 \
  67. ${CFDIR}/feature/bitdomain.m4 \
  68. ${CFDIR}/feature/blacklist_recipients.m4 \
  69. ${CFDIR}/feature/conncontrol.m4 \
  70. ${CFDIR}/feature/dnsbl.m4 \
  71. ${CFDIR}/feature/domaintable.m4 \
  72. ${CFDIR}/feature/generics_entire_domain.m4 \
  73. ${CFDIR}/feature/genericstable.m4 \
  74. ${CFDIR}/feature/ldap_routing.m4 \
  75. ${CFDIR}/feature/limited_masquerade.m4 \
  76. ${CFDIR}/feature/local_lmtp.m4 \
  77. ${CFDIR}/feature/local_procmail.m4 \
  78. ${CFDIR}/feature/loose_relay_check.m4 \
  79. ${CFDIR}/feature/mailertable.m4 \
  80. ${CFDIR}/feature/masquerade_entire_domain.m4 \
  81. ${CFDIR}/feature/masquerade_envelope.m4 \
  82. ${CFDIR}/feature/no_default_msa.m4 \
  83. ${CFDIR}/feature/nocanonify.m4 \
  84. ${CFDIR}/feature/notsticky.m4 \
  85. ${CFDIR}/feature/nouucp.m4 \
  86. ${CFDIR}/feature/nullclient.m4 \
  87. ${CFDIR}/feature/promiscuous_relay.m4 \
  88. ${CFDIR}/feature/ratecontrol.m4 \
  89. ${CFDIR}/feature/redirect.m4 \
  90. ${CFDIR}/feature/relay_based_on_MX.m4 \
  91. ${CFDIR}/feature/relay_entire_domain.m4 \
  92. ${CFDIR}/feature/relay_hosts_only.m4 \
  93. ${CFDIR}/feature/relay_local_from.m4 \
  94. ${CFDIR}/feature/relay_mail_from.m4 \
  95. ${CFDIR}/feature/smrsh.m4 \
  96. ${CFDIR}/feature/stickyhost.m4 \
  97. ${CFDIR}/feature/use_ct_file.m4 \
  98. ${CFDIR}/feature/use_cw_file.m4 \
  99. ${CFDIR}/feature/uucpdomain.m4 \
  100. ${CFDIR}/feature/virtuser_entire_domain.m4 \
  101. ${CFDIR}/feature/virtusertable.m4 \
  102. ${CFDIR}/hack/cssubdomain.m4 \
  103. ${CFDIR}/m4/cf.m4 \
  104. ${CFDIR}/m4/cfhead.m4 \
  105. ${CFDIR}/m4/proto.m4 \
  106. ${CFDIR}/m4/version.m4 \
  107. ${CFDIR}/mailer/cyrus.m4 \
  108. ${CFDIR}/mailer/fax.m4 \
  109. ${CFDIR}/mailer/local.m4 \
  110. ${CFDIR}/mailer/mail11.m4 \
  111. ${CFDIR}/mailer/phquery.m4 \
  112. ${CFDIR}/mailer/pop.m4 \
  113. ${CFDIR}/mailer/procmail.m4 \
  114. ${CFDIR}/mailer/qpage.m4 \
  115. ${CFDIR}/mailer/smtp.m4 \
  116. ${CFDIR}/mailer/usenet.m4 \
  117. ${CFDIR}/mailer/uucp.m4 \
  118. ${CFDIR}/ostype/aix3.m4 \
  119. ${CFDIR}/ostype/aix4.m4 \
  120. ${CFDIR}/ostype/altos.m4 \
  121. ${CFDIR}/ostype/amdahl-uts.m4 \
  122. ${CFDIR}/ostype/a-ux.m4 \
  123. ${CFDIR}/ostype/bsd4.3.m4 \
  124. ${CFDIR}/ostype/bsd4.4.m4 \
  125. ${CFDIR}/ostype/bsdi.m4 \
  126. ${CFDIR}/ostype/bsdi1.0.m4 \
  127. ${CFDIR}/ostype/bsdi2.0.m4 \
  128. ${CFDIR}/ostype/dgux.m4 \
  129. ${CFDIR}/ostype/domainos.m4 \
  130. ${CFDIR}/ostype/dragonfly.m4 \
  131. ${CFDIR}/ostype/dynix3.2.m4 \
  132. ${CFDIR}/ostype/freebsd4.m4 \
  133. ${CFDIR}/ostype/freebsd5.m4 \
  134. ${CFDIR}/ostype/freebsd6.m4 \
  135. ${CFDIR}/ostype/gnu.m4 \
  136. ${CFDIR}/ostype/hpux10.m4 \
  137. ${CFDIR}/ostype/hpux11.m4 \
  138. ${CFDIR}/ostype/hpux9.m4 \
  139. ${CFDIR}/ostype/irix4.m4 \
  140. ${CFDIR}/ostype/irix5.m4 \
  141. ${CFDIR}/ostype/irix6.m4 \
  142. ${CFDIR}/ostype/isc4.1.m4 \
  143. ${CFDIR}/ostype/linux.m4 \
  144. ${CFDIR}/ostype/maxion.m4 \
  145. ${CFDIR}/ostype/mklinux.m4 \
  146. ${CFDIR}/ostype/mpeix.m4 \
  147. ${CFDIR}/ostype/nextstep.m4 \
  148. ${CFDIR}/ostype/openbsd.m4 \
  149. ${CFDIR}/ostype/osf1.m4 \
  150. ${CFDIR}/ostype/powerux.m4 \
  151. ${CFDIR}/ostype/ptx2.m4 \
  152. ${CFDIR}/ostype/qnx.m4 \
  153. ${CFDIR}/ostype/riscos4.5.m4 \
  154. ${CFDIR}/ostype/sco-uw-2.1.m4 \
  155. ${CFDIR}/ostype/sco3.2.m4 \
  156. ${CFDIR}/ostype/sinix.m4 \
  157. ${CFDIR}/ostype/solaris2.m4 \
  158. ${CFDIR}/ostype/solaris2.ml.m4 \
  159. ${CFDIR}/ostype/solaris2.pre5.m4 \
  160. ${CFDIR}/ostype/solaris8.m4 \
  161. ${CFDIR}/ostype/sunos3.5.m4 \
  162. ${CFDIR}/ostype/sunos4.1.m4 \
  163. ${CFDIR}/ostype/svr4.m4 \
  164. ${CFDIR}/ostype/ultrix4.m4 \
  165. ${CFDIR}/ostype/unixware7.m4 \
  166. ${CFDIR}/ostype/unknown.m4 \
  167. ${CFDIR}/ostype/uxpds.m4
  168. $(ALL): $(M4FILES)
  169. .include <bsd.prog.mk>