Add the source code for /usr/src/usr.bin from the Net/2 tape
[unix-history] / usr / src / share / tmac / Makefile
index 283f8cb..920d59c 100644 (file)
@@ -1,6 +1,9 @@
-#      @(#)Makefile    6.7 (Berkeley) %G%
+#      @(#)Makefile    6.13 (Berkeley) 3/20/91
 
 
-FILES= tmac.an tmac.r tmac.doc tmac.andoc
+BINDIR= /usr/share
+FILES= tmac.andoc tmac.doc.old
+MSRCS=  doc doc-ditroff doc-common doc-nroff doc-syms
+LINKS= ${BINDIR}/tmac/tmac.andoc ${BINDIR}/tmac/tmac.an
 NOOBJ= noobj
 
 # old macros not currently installed...
 NOOBJ= noobj
 
 # old macros not currently installed...
@@ -8,8 +11,14 @@ OFILES=       tmac.an.v6compat tmac.an6n tmac.an6t tmac.a tmac.cp
 
 all clean cleandir depend lint tags:
 
 
 all clean cleandir depend lint tags:
 
-install:
+beforeinstall:
+       for i in ${MSRCS}; do \
+               sed -f strip.sed < $$i > ${DESTDIR}${BINDIR}/tmac/tmac.$$i; \
+               chown ${BINOWN}.${BINGRP} ${DESTDIR}${BINDIR}/tmac/tmac.$$i; \
+               chmod 444 ${DESTDIR}${BINDIR}/tmac/tmac.$$i; \
+       done
        install -c -o ${BINOWN} -g ${BINOWN} -m 444 ${FILES} \
        install -c -o ${BINOWN} -g ${BINOWN} -m 444 ${FILES} \
-           ${DESTDIR}${BINDIR}/tmac
+               ${DESTDIR}${BINDIR}/tmac
+
 
 .include <bsd.prog.mk>
 
 .include <bsd.prog.mk>