date and time created 88/04/22 12:15:53 by bostic
[unix-history] / usr / src / share / me / Makefile
CommitLineData
764e1de1 1#
ae2d3983 2# Copyright (c) 1987 Regents of the University of California.
c21e3764
KM
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
e7e3281b 6# @(#)Makefile 6.3 (Berkeley) %G%
c21e3764 7#
ae2d3983
KB
8CFLAGS= -O
9LIBC= /lib/libc.a
10LIB= /usr/lib/me
11SRCS= tmac.e acm.me chars.me deltext.me eqn.me float.me footnote.me \
12 index.me local.me null.me refer.me sh.me tbl.me thesis.me
764e1de1 13
ae2d3983 14all:
764e1de1 15
ae2d3983 16install: FRC
e7e3281b
KB
17 -[ -d ${DESTDIR}${LIB} ] || mkdir ${DESTDIR}${LIB}
18 chown bin.bin ${DESTDIR}${LIB}
19 chmod 755 ${DESTDIR}${LIB}
c21e3764
KM
20 -for i in ${SRCS}; do \
21 sed -e '/%beginstrip%/{' \
22 -e 'h' \
23 -e 's/.*/.\\" This version has had comments stripped; an unstripped version is available./p' \
24 -e 'g' \
25 -e '}' \
26 -e '/%beginstrip%/,$$s/[. ][ ]*\\".*//' \
27 -e '/^$$/d' \
28 -e '/\\n@/d' $$i > _mac_tmp_; \
e7e3281b 29 install -o bin -g bin -m 444 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \
c21e3764
KM
30 done
31 mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/lib/tmac/tmac.e
ae2d3983 32 install -c -o bin -g bin -m 444 revisions ${DESTDIR}${LIB}/revisions
764e1de1
EA
33
34clean:
ae2d3983
KB
35depend:
36FRC: