update, add man page, etc.
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 28 Sep 1988 14:29:58 +0000 (06:29 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 28 Sep 1988 14:29:58 +0000 (06:29 -0800)
SCCS-vsn: usr.bin/tftp/Makefile 5.7

usr/src/usr.bin/tftp/Makefile

index bffa3cb..bdecb12 100644 (file)
 # 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
 SRCS=  main.c tftp.c tftpsubs.c
 OBJS=  main.o tftp.o tftpsubs.o
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  main.c tftp.c tftpsubs.c
 OBJS=  main.o tftp.o tftpsubs.o
+MAN=   tftp.0
 
 all: tftp
 
 
 all: tftp
 
-tftp:  ${OBJS} ${LIBC}
+tftp: ${OBJS} ${LIBC}
        ${CC} -o $@ ${CFLAGS} ${OBJS}
 
        ${CC} -o $@ ${CFLAGS} ${OBJS}
 
-clean: FRC
+clean:
        rm -f ${OBJS} core tftp
 
        rm -f ${OBJS} core tftp
 
-depend: FRC
+cleandir: clean
+       rm -f ${MAN} tags .depend
+
+depend: ${SRCS}
        mkdep ${CFLAGS} ${SRCS}
 
        mkdep ${CFLAGS} ${SRCS}
 
-install: FRC
+install: ${MAN}
        install -s -o bin -g bin -m 755 tftp ${DESTDIR}/usr/ucb/tftp
        install -s -o bin -g bin -m 755 tftp ${DESTDIR}/usr/ucb/tftp
+       install -c -o bin -g bin -m 444 tftp.0 ${DESTDIR}/usr/man/cat1
 
 
-lint: FRC
+lint: ${SRCS}
        lint ${CFLAGS} ${SRCS}
 
        lint ${CFLAGS} ${SRCS}
 
-tags: FRC
+tags: ${SRCS}
        ctags ${SRCS}
        ctags ${SRCS}
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-main.o: main.c /usr/include/sys/types.h /usr/include/sys/socket.h
-main.o: /usr/include/sys/file.h /usr/include/netinet/in.h /usr/include/signal.h
-main.o: /usr/include/stdio.h /usr/include/errno.h /usr/include/setjmp.h
-main.o: /usr/include/ctype.h /usr/include/netdb.h
-tftp.o: tftp.c /usr/include/sys/types.h /usr/include/sys/socket.h
-tftp.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/netinet/in.h
-tftp.o: /usr/include/arpa/tftp.h /usr/include/signal.h /usr/include/stdio.h
-tftp.o: /usr/include/errno.h /usr/include/setjmp.h
-tftpsubs.o: tftpsubs.c /usr/include/sys/types.h /usr/include/sys/socket.h
-tftpsubs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
-tftpsubs.o: /usr/include/sys/ttydev.h /usr/include/netinet/in.h
-tftpsubs.o: /usr/include/arpa/tftp.h /usr/include/stdio.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY