POSIX 1003.2 is not going to allow write errors to be ignored; let's
[unix-history] / usr / src / usr.bin / calendar / Makefile
CommitLineData
f2bedc4c 1#
ec907a08
KB
2# Copyright (c) 1988 The Regents of the University of California.
3# All rights reserved.
ece3ca79 4#
ec907a08
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
435e8dff 17# @(#)Makefile 4.5 (Berkeley) %G%
ece3ca79 18#
f2bedc4c 19CFLAGS= -O
ece3ca79
KB
20LIBC= /lib/libc.a
21SRCS= calendar.c
ec907a08
KB
22OBJS=
23MAN= calendar.0
ece3ca79
KB
24
25all: calendar
26
ec907a08
KB
27calendar: ${LIBC}
28 ${CC} ${CFLAGS} -o $@ $@.c
ece3ca79 29
ec907a08 30clean:
ece3ca79
KB
31 rm -f ${OBJS} core calendar
32
ec907a08
KB
33cleandir: clean
34 rm -f ${MAN} tags .depend
35
36depend: ${SRCS}
ece3ca79
KB
37 mkdep -p ${CFLAGS} ${SRCS}
38
ec907a08 39install: ${MAN}
435e8dff 40 install -s -o bin -g bin -m 755 calendar ${DESTDIR}/usr/libexec
ece3ca79 41 install -c -o bin -g bin -m 755 calendar.sh ${DESTDIR}/usr/bin/calendar
ec907a08 42 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
ece3ca79 43
ec907a08 44lint: ${SRCS}
ece3ca79
KB
45 lint ${CFLAGS} ${SRCS}
46
ec907a08 47tags: ${SRCS}
ece3ca79 48 ctags ${SRCS}