Don't use a dot in the chown commands. In fact, don't use any commands

except `install' at install time.  Don't build things at install time.
Install with mode ${NOBINMODE} instead of 444.
This commit is contained in:
Bruce Evans 1997-03-08 21:41:41 +00:00
parent df3be16ec3
commit 489a9f761a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23545

View File

@ -6,22 +6,29 @@ 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.orig_me
FILES= ${MESRCS} ${TMSRCS}
CLEANFILES+= ${FILES:S/$/.tmp/}
# XXX use groff version
# MAN7= me.7
all: ${FILES:S/$/.tmp/}
.for file in ${FILES}
${file}.tmp: ${file}
sed -f ${.CURDIR}/strip.sed < ${.ALLSRC} > ${.TARGET}
.endfor
beforeinstall:
cd ${.CURDIR}; for i in ${MESRCS}; do \
sed -f strip.sed < $$i > ${DESTDIR}${MELIB}/$$i; \
chown ${BINOWN}.${BINGRP} ${DESTDIR}${MELIB}/$$i; \
chmod 444 ${DESTDIR}${MELIB}/$$i; \
done
cd ${.CURDIR}; for i in ${TMSRCS}; do \
sed -f strip.sed < $$i > ${DESTDIR}${TMLIB}/$$i; \
chown ${BINOWN}.${BINGRP} ${DESTDIR}${TMLIB}/$$i; \
chmod 444 ${DESTDIR}${TMLIB}/$$i; \
done
cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
revisions ${DESTDIR}${MELIB}/revisions
.for file in ${MESRCS}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${file}.tmp ${DESTDIR}${MELIB}/${file}
.endfor
.for file in ${TMSRCS}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${file}.tmp ${DESTDIR}${TMLIB}/${file}
.endfor
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${.CURDIR}/revisions ${DESTDIR}${MELIB}/
.include <bsd.prog.mk>