new copyright notice
[unix-history] / usr / src / libexec / getty / Makefile
index f0aa104..54c48ed 100644 (file)
@@ -1,26 +1,12 @@
-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.1 (Berkeley) %G%
-#
-DESTDIR=
-CFLAGS=        -O
-OBJS=  main.o init.o subr.o gettytab.o get_date.o
+#      @(#)Makefile    5.7 (Berkeley) %G%
 
 
-all:   getty
+PROG=  getty
+SRCS=  main.c init.c subr.c gettytab.c get_date.c
+MAN5=  gettytab.0 ttys.0
+MAN8=  getty.0
 
 
-getty: ${OBJS}
-       ${CC} -o getty ${OBJS}
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/gettytab \
+           ${DESTDIR}/etc/gettytab
 
 
-install: all
-       install -s getty ${DESTDIR}/etc/getty
-       install -c -m 444 gettytab ${DESTDIR}/etc/gettytab
-
-clean:
-       rm -f getty ${OBJS} a.out core errs
-
-main.o: gettytab.h
-init.o: gettytab.h
-subr.o: gettytab.h
+.include <bsd.prog.mk>