Commit | Line | Data |
---|---|---|
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 | # | |
ae2d3983 | 6 | # @(#)Makefile 6.2 (Berkeley) %G% |
c21e3764 | 7 | # |
ae2d3983 KB |
8 | CFLAGS= -O |
9 | LIBC= /lib/libc.a | |
10 | LIB= /usr/lib/me | |
11 | SRCS= 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 | 14 | all: |
764e1de1 | 15 | |
ae2d3983 | 16 | install: FRC |
c21e3764 KM |
17 | -if [ ! -d ${DESTDIR}${LIB} ]; then \ |
18 | rm -f ${DESTDIR}${LIB}; \ | |
19 | mkdir ${DESTDIR}${LIB}; \ | |
20 | fi | |
21 | -for i in ${SRCS}; do \ | |
22 | sed -e '/%beginstrip%/{' \ | |
23 | -e 'h' \ | |
24 | -e 's/.*/.\\" This version has had comments stripped; an unstripped version is available./p' \ | |
25 | -e 'g' \ | |
26 | -e '}' \ | |
27 | -e '/%beginstrip%/,$$s/[. ][ ]*\\".*//' \ | |
28 | -e '/^$$/d' \ | |
29 | -e '/\\n@/d' $$i > _mac_tmp_; \ | |
ae2d3983 | 30 | install -o bin -g bin -m 644 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \ |
c21e3764 KM |
31 | done |
32 | mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/lib/tmac/tmac.e | |
ae2d3983 | 33 | install -c -o bin -g bin -m 444 revisions ${DESTDIR}${LIB}/revisions |
764e1de1 EA |
34 | |
35 | clean: | |
ae2d3983 KB |
36 | depend: |
37 | FRC: |