new template
[unix-history] / usr / src / share / me / Makefile
index 24ed5b7..7f40a21 100644 (file)
@@ -1,23 +1,37 @@
 #
 #
-#  Makefile for -me macros
+# Copyright (c) 1987 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
 #
 #
-#      This makefile strips comments from the source files and
-#      installs them in the expected directories.
+#      @(#)Makefile    6.2     (Berkeley)      %G%
 #
 #
-#      @(#)Makefile    1.1             85/04/29
-#
-
-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
+CFLAGS=        -O
+LIBC=  /lib/libc.a
+LIB=   /usr/lib/me
+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
 
 
-all: revisions $(SRCS)
+all:
 
 
-install: revisions $(SRCS) install.csh
-       csh install.csh $(SRCS)
+install: FRC
+       -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 -o bin -g bin -m 644 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \
+       done
+       mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/lib/tmac/tmac.e
+       install -c -o bin -g bin -m 444 revisions ${DESTDIR}${LIB}/revisions
 
 clean:
 
 clean:
-
-revisions install.csh $(SRCS):
-       $(GET) SCCS/s.$@
+depend:
+FRC: