BSD 4_4_Lite1 release
[unix-history] / usr / src / share / me / Makefile
index 05b51ed..c90a811 100644 (file)
@@ -1,45 +1,25 @@
-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
-#  Makefile for -me macros
-#
-#      This makefile strips comments from the source files and
-#      installs them in the expected directories.
-#
-DESTDIR=
-LIB =  /usr/lib/me
+#      @(#)Makefile    8.2 (Berkeley) 3/27/94
 
 
-SRCS = tmac.e acm.me chars.me deltext.me eqn.me \
-       float.me footnote.me index.me local.me null.me \
-       refer.me sh.me tbl.me thesis.me
-GET =  sccs get
+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.orig_me
+MAN7=  me.0
 
 
-all: revisions $(SRCS)
-
-install: revisions $(SRCS)
-       -if [ ! -d ${DESTDIR}${LIB} ]; then \
-               rm -f ${DESTDIR}${LIB}; \
-               mkdir ${DESTDIR}${LIB}; \
-       fi
-       -for i in ${SRCS}; do \
-               sed -e '/%beginstrip%/{' \
-                   -e 'h' \
-                   -e 's/.*/.\\" This version has had comments stripped; an unstripped version is available./p' \
-                   -e 'g' \
-                   -e '}' \
-                   -e '/%beginstrip%/,$$s/[.   ][      ]*\\".*//' \
-                   -e '/^$$/d' \
-                   -e '/\\n@/d' $$i > _mac_tmp_; \
-               install -m 0444 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \
+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
        done
-       mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/lib/tmac/tmac.e
-       install -c -m 0444 revisions ${DESTDIR}${LIB}/revisions
-
-clean:
+       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
 
 
-revisions $(SRCS):
-       $(GET) SCCS/s.$@
+.include <bsd.prog.mk>