NetBSD/share/me/Makefile
1999-08-21 06:27:29 +00:00

60 lines
1.5 KiB
Makefile

# @(#)Makefile 8.2 (Berkeley) 3/27/94
# $NetBSD: Makefile,v 1.16 1999/08/21 06:27:29 simonb Exp $
MELIB= ${BINDIR}/me
TMLIB= ${BINDIR}/tmac
MESRCS= acm.me chars.me deltext.me eqn.me float.me footnote.me \
index.me letterhead.me local.me null.me refer.me sh.me \
tbl.me thesis.me
TMSRCS= tmac.e
MAN= me.7
.include <bsd.prog.mk>
.for M in ${MESRCS}
proginstall:: ${DESTDIR}${MELIB}/${M}
.if !defined(UPDATE)
.PHONY: ${DESTDIR}${MELIB}/${M}
.endif
.if !defined(BUILD)
${DESTDIR}${MELIB}/${M}: .MADE
.endif
${DESTDIR}${MELIB}/${M}: ${M}
@rm -f ${.TARGET} /tmp/${M}.tmp
sed -f ${.CURDIR}/strip.sed < ${.ALLSRC} > /tmp/${M}.tmp
${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -o ${BINOWN} \
-g ${BINGRP} -m ${NONBINMODE} /tmp/${M}.tmp ${.TARGET}
.endfor
.for M in ${TMSRCS}
proginstall:: ${DESTDIR}${TMLIB}/${M}
.if !defined(UPDATE)
.PHONY: ${DESTDIR}${TMLIB}/${M}
.endif
.if !defined(BUILD)
${DESTDIR}${TMLIB}/${M}: .MADE
.endif
${DESTDIR}${TMLIB}/${M}: ${M}
@rm -f ${.TARGET} /tmp/${M}.tmp
sed -f ${.CURDIR}/strip.sed < ${.ALLSRC} > /tmp/${M}.tmp
${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -o ${BINOWN} \
-g ${BINGRP} -m ${NONBINMODE} /tmp/${M}.tmp ${.TARGET}
.endfor
proginstall:: ${DESTDIR}${MELIB}/revisions
.if !defined(UPDATE)
.PHONY: ${DESTDIR}${MELIB}/revisions
.endif
.if !defined(BUILD)
${DESTDIR}${MELIB}/revisions: .MADE
.endif
${DESTDIR}${MELIB}/revisions: revisions
${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${.ALLSRC} ${.TARGET}