don't open target for writing if we're just verifying the tapes
[unix-history] / usr / src / usr.bin / m4 / Makefile
CommitLineData
22ffcab2 1Virgin BTL M4 as sent out in 4.1
8758800b
KB
2#
3# Copyright (c) 1987 Regents of the University of California.
4# All rights reserved. The Berkeley software License Agreement
5# specifies the terms and conditions for redistribution.
6#
7# @(#)Makefile 5.3 (Berkeley) %G%
8#
9CFLAGS= -O
10LIBC= /lib/libc.a
11SRCS= m4.c m4y.c
12OBJS= m4.o m4y.o
22ffcab2 13
8758800b 14all: m4
22ffcab2 15
8758800b
KB
16m4: ${OBJS} ${LIBC}
17 ${CC} -o $@ ${CFLAGS} ${OBJS}
22ffcab2 18
8758800b
KB
19clean: FRC
20 rm -f ${OBJS} core m4 m4y.c
a8629c9c 21
8758800b
KB
22depend: ${SRCS} FRC
23 mkdep ${CFLAGS} ${SRCS}
24
25install: FRC
26 install -s -o bin -g bin -m 755 m4 ${DESTDIR}/usr/bin/m4
27
28lint: ${SRCS} FRC
29 lint ${CFLAGS} ${SRCS}
30
31tags: ${SRCS} FRC
32 ctags ${SRCS}
33
34FRC:
35
36# DO NOT DELETE THIS LINE -- mkdep uses it.
37# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
38
39m4.o: m4.c /usr/include/stdio.h /usr/include/signal.h
40m4y.o: m4y.c
41
42# IF YOU PUT ANYTHING HERE IT WILL GO AWAY