link man page tput to clear
[unix-history] / usr / src / usr.bin / tput / Makefile
index fe801e4..5e89f77 100644 (file)
 # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
 # FITNESS FOR A PARTICULAR PURPOSE.
 #
 # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
 # FITNESS FOR A PARTICULAR PURPOSE.
 #
-# @(#)Makefile 5.2 (Berkeley) %G%
+# @(#)Makefile 5.4 (Berkeley) %G%
 #
 
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 #
 
 CFLAGS=        -O
 LIBC=  /lib/libc.a
-SRCS=  clear.c
+SRCS=  tput.c
 OBJS=
 OBJS=
-MAN=   clear.0
+MAN=   tput.0
 
 
-all: clear
+all: tput
 
 
-clear: ${LIBC}
+tput: ${LIBC}
        ${CC} -o $@ ${CFLAGS} $@.c -ltermcap
 
 clean:
        ${CC} -o $@ ${CFLAGS} $@.c -ltermcap
 
 clean:
-       rm -f ${OBJS} core clear
+       rm -f ${OBJS} core tput
 
 cleandir: clean
        rm -f ${MAN} tags .depend
 
 cleandir: clean
        rm -f ${MAN} tags .depend
@@ -38,8 +38,11 @@ depend: ${SRCS}
        mkdep -p ${CFLAGS} ${SRCS}
 
 install: ${MAN}
        mkdep -p ${CFLAGS} ${SRCS}
 
 install: ${MAN}
-       install -s -o bin -g bin -m 755 clear ${DESTDIR}/usr/bin
+       install -s -o bin -g bin -m 755 tput ${DESTDIR}/usr/bin
+       install -c -o bin -g bin -m 755 clear.sh ${DESTDIR}/usr/bin/clear
        install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
        install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+       rm -f ${DESTDIR}/usr/man/cat1/clear.0
+       ln ${DESTDIR}/usr/man/cat1/tput.0 ${DESTDIR}/usr/man/cat1/clear.0
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
 
 lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}