Put the DIST and .PATH settings back where they were and separate out
the actual mc -> cf build machinery into a small Makefile that we can (a) include and (b) install instead of the main Makefile (that really shouldn't be installed in as it is). Reviewed by lukem.
This commit is contained in:
parent
e7735eb5b9
commit
7bc42aaab1
@ -1,36 +1,30 @@
|
||||
# $NetBSD: Makefile,v 1.22 2003/03/31 20:57:30 atatat Exp $
|
||||
# $NetBSD: Makefile,v 1.23 2003/04/01 03:16:53 atatat Exp $
|
||||
# install these sources in /usr/share/sendmail/cf
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
FILESDIR= /usr/share/sendmail/cf
|
||||
FILES= boat-anchor.mc chimera.mc ihack.net.mc minbar.mc \
|
||||
netbsd-proto.mc netbsd-msp.mc submit.mc sun-lamp.mc zhadum.mc \
|
||||
Makefile
|
||||
|
||||
.if (${.CURDIR} == ${FILESDIR})
|
||||
CFDIR= ${.CURDIR}/..
|
||||
.else
|
||||
DIST= ${NETBSDSRCDIR}/gnu/dist
|
||||
.PATH: ${DIST}/sendmail/cf/cf
|
||||
|
||||
FILESDIR= /usr/share/sendmail/cf
|
||||
FILES= boat-anchor.mc chimera.mc ihack.net.mc minbar.mc \
|
||||
netbsd-proto.mc netbsd-msp.mc submit.mc sun-lamp.mc zhadum.mc
|
||||
|
||||
FILES+= Makefile.sendmail
|
||||
FILESNAME_Makefile.sendmail=Makefile
|
||||
|
||||
.if (${.CURDIR} == ${FILESDIR})
|
||||
CFDIR?= ${.CURDIR}/..
|
||||
.else
|
||||
CFDIR?= ${DIST}/sendmail/cf
|
||||
.endif
|
||||
CHMOD= chmod
|
||||
M4?= m4
|
||||
ROMODE= 444
|
||||
RM= rm -f
|
||||
|
||||
ALL= netbsd-proto.cf netbsd-msp.cf
|
||||
FILES+= ${ALL}
|
||||
|
||||
OTHERS= ${FILES:S/Makefile//:C/netbsd-(proto|msp).*//:S/.mc/.cf/g}
|
||||
|
||||
.SUFFIXES: .mc .cf
|
||||
|
||||
.mc.cf:
|
||||
${RM} $@
|
||||
(cd ${CFDIR}/cf && \
|
||||
${M4} ${CFDIR}/m4/cf.m4 ${.CURDIR}/${@:R}.mc > ${.OBJDIR}/$@)
|
||||
${CHMOD} ${ROMODE} $@
|
||||
.include <Makefile.sendmail>
|
||||
|
||||
realall: ${ALL}
|
||||
|
||||
|
15
gnu/usr.sbin/sendmail/cf/cf/Makefile.sendmail
Normal file
15
gnu/usr.sbin/sendmail/cf/cf/Makefile.sendmail
Normal file
@ -0,0 +1,15 @@
|
||||
# $NetBSD: Makefile.sendmail,v 1.1 2003/04/01 03:16:54 atatat Exp $
|
||||
|
||||
CFDIR?= ${.CURDIR}/..
|
||||
CHMOD= chmod
|
||||
M4?= m4
|
||||
ROMODE= 444
|
||||
RM= rm -f
|
||||
|
||||
.SUFFIXES: .mc .cf
|
||||
|
||||
.mc.cf:
|
||||
${RM} $@
|
||||
(cd ${CFDIR}/cf && \
|
||||
${M4} ${CFDIR}/m4/cf.m4 ${.CURDIR}/${@:R}.mc > ${.OBJDIR}/$@)
|
||||
${CHMOD} ${ROMODE} $@
|
Loading…
Reference in New Issue
Block a user