SCCS-vsn: old/more/Makefile 5.7
SCCS-vsn: old/more/more.c 5.20
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# @(#)Makefile 5.6 (Berkeley) %G%
+# @(#)Makefile 5.7 (Berkeley) %G%
#
CFLAGS= -O
LIBC= /lib/libc.a
#
CFLAGS= -O
LIBC= /lib/libc.a
-more: ${OBJS} ${LIBC}
- ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap
+more: ${LIBC}
+ ${CC} -o $@ $@.c ${CFLAGS} -ltermcap
clean:
rm -f ${OBJS} core more
clean:
rm -f ${OBJS} core more
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
mkdep ${CFLAGS} ${SRCS}
install: ${MAN}
- install -s -o bin -g bin -m 755 more ${DESTDIR}/usr/ucb/more
- rm -f ${DESTDIR}/usr/ucb/page
- ln ${DESTDIR}/usr/ucb/more ${DESTDIR}/usr/ucb/page
- install -c -o bin -g bin -m 644 more.help ${DESTDIR}/usr/lib/more.help
- install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
- rm -f ${DESTDIR}/usr/man/cat1/page.0
- ln ${DESTDIR}/usr/man/cat1/more.0 ${DESTDIR}/usr/man/cat1/page.0
+ 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/lib/omore.help
+ 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}
lint: ${SRCS}
lint ${CFLAGS} ${SRCS}
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)more.c 5.19 (Berkeley) %G%";
+static char sccsid[] = "@(#)more.c 5.20 (Berkeley) %G%";
#include <a.out.h>
#include <varargs.h>
#include <a.out.h>
#include <varargs.h>
-#define HELPFILE "/usr/lib/more.help"
+#define HELPFILE "/usr/lib/omore.help"
#define VI "/usr/ucb/vi"
#define Fopen(s,m) (Currline = 0,file_pos=0,fopen(s,m))
#define VI "/usr/ucb/vi"
#define Fopen(s,m) (Currline = 0,file_pos=0,fopen(s,m))