1997-07-07 22:33:30 +04:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 3/27/94
|
2001-08-07 14:24:46 +04:00
|
|
|
# $NetBSD: Makefile,v 1.18 2001/08/07 10:24:46 mrg Exp $
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
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
|
1997-07-07 22:44:43 +04:00
|
|
|
TMSRCS= tmac.e
|
|
|
|
MAN= me.7
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
1997-07-07 22:44:43 +04:00
|
|
|
|
|
|
|
.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}
|
2001-08-07 14:24:46 +04:00
|
|
|
@rm -f ${.TARGET} ${M}.tmp
|
|
|
|
sed -f ${.CURDIR}/strip.sed < ${.ALLSRC} > ${M}.tmp
|
1999-08-21 10:27:29 +04:00
|
|
|
${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -o ${BINOWN} \
|
2001-08-07 14:24:46 +04:00
|
|
|
-g ${BINGRP} -m ${NONBINMODE} ${M}.tmp ${.TARGET}
|
1997-07-07 22:44:43 +04:00
|
|
|
.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}
|
2001-08-07 14:24:46 +04:00
|
|
|
@rm -f ${.TARGET} ${M}.tmp
|
|
|
|
sed -f ${.CURDIR}/strip.sed < ${.ALLSRC} > ${M}.tmp
|
1999-08-21 10:27:29 +04:00
|
|
|
${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -o ${BINOWN} \
|
2001-08-07 14:24:46 +04:00
|
|
|
-g ${BINGRP} -m ${NONBINMODE} ${M}.tmp ${.TARGET}
|
1997-07-07 22:44:43 +04:00
|
|
|
.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
|
2000-09-23 17:53:41 +04:00
|
|
|
${INSTALL} ${INSTPRIV} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1999-08-21 10:27:29 +04:00
|
|
|
${.ALLSRC} ${.TARGET}
|
1997-07-07 22:44:43 +04:00
|
|
|
|