xref: /original-bsd/share/me/Makefile (revision 1db732ef)
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.  The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6#	@(#)Makefile	6.3	(Berkeley)	10/03/87
7#
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
13
14all:
15
16install: FRC
17	-[ -d ${DESTDIR}${LIB} ] || mkdir ${DESTDIR}${LIB}
18	chown bin.bin ${DESTDIR}${LIB}
19	chmod 755 ${DESTDIR}${LIB}
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_; \
29		install -o bin -g bin -m 444 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \
30	done
31	mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/lib/tmac/tmac.e
32	install -c -o bin -g bin -m 444 revisions ${DESTDIR}${LIB}/revisions
33
34clean:
35depend:
36FRC:
37