xref: /original-bsd/share/me/Makefile (revision 57124d5e)
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.2	(Berkeley)	06/21/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	-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_; \
30		install -o bin -g bin -m 644 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \
31	done
32	mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/lib/tmac/tmac.e
33	install -c -o bin -g bin -m 444 revisions ${DESTDIR}${LIB}/revisions
34
35clean:
36depend:
37FRC:
38