Make "tags" and "lint" work.
authorGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Tue, 28 Jun 1988 13:07:40 +0000 (05:07 -0800)
committerGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Tue, 28 Jun 1988 13:07:40 +0000 (05:07 -0800)
SCCS-vsn: usr.bin/telnet/Makefile 1.9

usr/src/usr.bin/telnet/Makefile

index 5d083f9..e388f26 100644 (file)
@@ -9,7 +9,7 @@
 # software without specific prior written permission. This software
 # is provided ``as is'' without express or implied warranty.
 #
 # software without specific prior written permission. This software
 # is provided ``as is'' without express or implied warranty.
 #
-#      @(#)Makefile    1.8 (Berkeley) %G%
+#      @(#)Makefile    1.9 (Berkeley) %G%
 #
 
 # The following is the telnet makefile.  The sources are down one level
 #
 
 # The following is the telnet makefile.  The sources are down one level
@@ -23,6 +23,11 @@ LIBC=        /lib/libc.a
 SRCS=  commands.c main.c network.c ring.c \
        sys_bsd.c sys_dos.c telnet.c terminal.c \
        tn3270.c utilities.c
 SRCS=  commands.c main.c network.c ring.c \
        sys_bsd.c sys_dos.c telnet.c terminal.c \
        tn3270.c utilities.c
+
+ALLHC= ${SRCS} \
+       Source/defines.h Source/externs.h Source/fdset.h Source/general.h \
+       Source/ring.h Source/types.h
+
 OBJS=  commands.o main.o network.o ring.o sys_bsd.o sys_dos.o \
        telnet.o terminal.o tn3270.o utilities.o
 
 OBJS=  commands.o main.o network.o ring.o sys_bsd.o sys_dos.o \
        telnet.o terminal.o tn3270.o utilities.o
 
@@ -34,17 +39,25 @@ telnet:     ${OBJS} ${LIBC}
 clean: FRC
        rm -f ${OBJS} core telnet
 
 clean: FRC
        rm -f ${OBJS} core telnet
 
+clist: FRC ${SRCS}
+       @for i in ${SRCS} ; \
+               do (echo ${DIRPATH}$$i); done
+
+hclist:        FRC ${ALLHC}
+       @for i in ${ALLHC} ; \
+               do (echo ${DIRPATH}$$i); done
+
 depend: FRC ${SRCS}
 depend: FRC ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
+       mkdep ${CFLAGS} `make clist`
 
 install: FRC
        install -s -o bin -g bin -m 755 telnet ${DESTDIR}/usr/ucb/telnet
 
 
 install: FRC
        install -s -o bin -g bin -m 755 telnet ${DESTDIR}/usr/ucb/telnet
 
-lint: FRC
-       lint ${CFLAGS} ${SRCS}
+lint: FRC ${SRCS}
+       lint ${CFLAGS} `make clist`
 
 
-tags: FRC
-       ctags ${SRCS}
+tags: FRC ${SRCS}
+       ctags `make hclist`
 
 FRC:
 
 
 FRC: