converted man page
[unix-history] / usr / src / old / more / Makefile
index 0cd9e80..594c3ff 100644 (file)
@@ -1,52 +1,13 @@
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.9 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  more.c
-OBJS=
-MAN=   more.0
+#      @(#)Makefile    5.10 (Berkeley) %G%
 
 
-all: more
+PROG=  more
+DPADD= ${LIBTERM} ${LIBCOMPAT}
+LDADD= -ltermcap -lcompat
+MLINKS=        more.1 page.1
+LINKS= ${BINDIR}/more ${BINDIR}/page
 
 
-more: ${LIBC}
-       ${CC} -o $@ $@.c ${CFLAGS} -ltermcap -lcompat
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/more.help \
+           ${DESTDIR}/usr/share/misc
 
 
-clean:
-       rm -f ${OBJS} core more
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 more ${DESTDIR}/usr/old
-       rm -f ${DESTDIR}/usr/old/page
-       ln ${DESTDIR}/usr/old/more ${DESTDIR}/usr/old/page
-       install -c -o bin -g bin -m 644 more.help ${DESTDIR}/usr/share/misc
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat.old
-       rm -f ${DESTDIR}/usr/man/cat.old/page.0
-       ln ${DESTDIR}/usr/man/cat.old/more.0 ${DESTDIR}/usr/man/cat.old/page.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>