xref: /original-bsd/contrib/ansi/Makefile (revision a7b61cda)
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	5.5	(Berkeley)	07/30/87
7#
8DESTDIR=
9CFLAGS=	-O
10SRCS=	vmsprep.c ansitape.c
11MSRC=	vmsprep.1 ansitape.1
12MOBJ=	vmsprep.0 ansitape.0
13
14.SUFFIXES: .1 .0
15
16.1.0:
17	/usr/man/manroff $*.1 > $*.0
18
19all: ansitape vmsprep
20
21ansitape:
22	${CC} ${CFLAGS} -o $@ ansitape.c
23
24vmsprep:
25	${CC} ${CFLAGS} -o $@ vmsprep.c
26
27install: vmsprep ansitape ${MOBJ}
28	install -s -o bin -g bin -m 755 vmsprep ${DESTDIR}/usr/new/vmsprep
29	install -s -o bin -g bin -m 755 ansitape ${DESTDIR}/usr/new/ansitape
30	install -c -o bin -g bin -m 444 vmsprep.0 ${DESTDIR}/usr/new/man/cat1/vmsprep.0
31	install -c -o bin -g bin -m 444 ansitape.0 ${DESTDIR}/usr/new/man/cat1/ansitape.0
32
33clean:
34	rm -f a.out core errs makefile.bak Makefile.bak ansitape vmsprep *.0
35
36depend:
37	mkdep -p ${SRCS}
38
39tags:
40	ctags ${SRCS}
41
42# DO NOT DELETE THIS LINE -- mkdep uses it.
43# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
44
45vmsprep: vmsprep.c /usr/include/stdio.h /usr/include/ctype.h
46vmsprep: /usr/include/strings.h
47ansitape: ansitape.c /usr/include/sys/types.h /usr/include/sys/time.h
48ansitape: /usr/include/time.h /usr/include/sys/mtio.h /usr/include/sys/ioctl.h
49ansitape: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
50ansitape: /usr/include/sys/file.h /usr/include/sys/stat.h /usr/include/a.out.h
51ansitape: /usr/include/sys/exec.h /usr/include/stdio.h /usr/include/ctype.h
52
53# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
54