converted man page
[unix-history] / usr / src / old / more / Makefile
index 1bb7f79..594c3ff 100644 (file)
@@ -1,33 +1,13 @@
-#
-# 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.2 (Berkeley) %G%
-#
-CFLAGS=        -O
-DESTDIR=
+#      @(#)Makefile    5.10 (Berkeley) %G%
 
 
-more:  more.o
-       ${CC} -o more more.o -ltermcap
+PROG=  more
+DPADD= ${LIBTERM} ${LIBCOMPAT}
+LDADD= -ltermcap -lcompat
+MLINKS=        more.1 page.1
+LINKS= ${BINDIR}/more ${BINDIR}/page
 
 
-install: more more.help
-       install -s more ${DESTDIR}/usr/ucb/more
-       rm -f ${DESTDIR}/usr/ucb/page
-       ln ${DESTDIR}/usr/ucb/more ${DESTDIR}/usr/ucb/page
-       install -c more.help ${DESTDIR}/usr/lib/more.help
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/more.help \
+           ${DESTDIR}/usr/share/misc
 
 
-more.o:        more.c
-more.o:        /usr/include/stdio.h
-more.o:        /usr/include/ctype.h
-more.o:        /usr/include/signal.h
-more.o:        /usr/include/errno.h
-more.o:        /usr/include/sgtty.h
-more.o:        /usr/include/setjmp.h
-more.o:        /usr/include/sys/types.h
-more.o:        /usr/include/sys/stat.h
-
-clean:
-       rm -f more more.o core a.out errs
-
-depend:
+.include <bsd.prog.mk>