add manual page, cleanup
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 26 Oct 1988 07:12:49 +0000 (23:12 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 26 Oct 1988 07:12:49 +0000 (23:12 -0800)
SCCS-vsn: usr.bin/plot/Makefile 4.11
SCCS-vsn: old/sed/Makefile 4.4
SCCS-vsn: usr.bin/sed/Makefile 4.4

usr/src/old/sed/Makefile
usr/src/usr.bin/plot/Makefile
usr/src/usr.bin/sed/Makefile

index a944443..699d7b3 100644 (file)
@@ -1,41 +1,47 @@
 #
 #
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
+# Copyright (c) 1987 The Regents of the University of California.
+# All rights reserved.
 #
 #
-#      @(#)Makefile    4.3     (Berkeley)      %G%
+# 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    4.4 (Berkeley) %G%
 #
 CFLAGS=        -O -w
 LIBC=  /lib/libc.a
 SRCS=  sed0.c sed1.c
 OBJS=  sed0.o sed1.o
 #
 CFLAGS=        -O -w
 LIBC=  /lib/libc.a
 SRCS=  sed0.c sed1.c
 OBJS=  sed0.o sed1.o
+MAN=   sed.0
 
 all: sed
 
 
 all: sed
 
-sed:   ${OBJS} ${LIBC}
+sed: ${OBJS} ${LIBC}
        ${CC} -o $@ ${CFLAGS} ${OBJS}
 
        ${CC} -o $@ ${CFLAGS} ${OBJS}
 
-clean: FRC
+clean:
        rm -f ${OBJS} core sed
 
        rm -f ${OBJS} core sed
 
-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 sed ${DESTDIR}/bin/sed
        install -s -o bin -g bin -m 755 sed ${DESTDIR}/bin/sed
+       install -c -o bin -g bin -m 444 ${MAN} ${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.
-
-sed0.o: sed0.c /usr/include/stdio.h sed.h
-sed1.o: sed1.c /usr/include/stdio.h sed.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
index 83d54e5..3c50c6c 100644 (file)
@@ -1,9 +1,20 @@
 #
 #
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
+# Copyright (c) 1987 The Regents of the University of California.
+# All rights reserved.
 #
 #
-#      @(#)Makefile    4.10    (Berkeley)      %G%
+# 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    4.11 (Berkeley) %G%
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
@@ -11,6 +22,7 @@ SRCS= atoplot.c chrtab.c crtdriver.c crtplot.c debug.c driver.c plottoa.c
 OBJS=  atoplot.o chrtab.o crtdriver.o crtplot.o debug.o driver.o plottoa.o
 ALL=   tek t4013 t300 t300s t450 aedplot bgplot crtplot dumbplot gigiplot \
        hpplot hp7221plot implot atoplot plottoa grnplot
 OBJS=  atoplot.o chrtab.o crtdriver.o crtplot.o debug.o driver.o plottoa.o
 ALL=   tek t4013 t300 t300s t450 aedplot bgplot crtplot dumbplot gigiplot \
        hpplot hp7221plot implot atoplot plottoa grnplot
+MAN=   plot.0
 
 all: ${ALL} debug
 
 
 all: ${ALL} debug
 
@@ -65,38 +77,24 @@ grnplot: driver.o
 debug: debug.o
        ${CC} ${CFLAGS} -o $@ debug.o
 
 debug: debug.o
        ${CC} ${CFLAGS} -o $@ debug.o
 
-clean: FRC
+clean:
        rm -f ${OBJS} ${ALL} debug core
 
        rm -f ${OBJS} ${ALL} debug core
 
-depend: FRC
+cleandir: clean
+       rm -f ${MAN} tags .depend
+
+depend: ${SRCS}
        mkdep ${CFLAGS} ${SRCS}
 
        mkdep ${CFLAGS} ${SRCS}
 
-install: FRC
+install: ${MAN}
        for i in ${ALL}; do \
                (install -s -o bin -g bin -m 755 $$i ${DESTDIR}/usr/bin/$$i); \
        done
        install -c -o bin -g bin -m 755 plot.sh ${DESTDIR}/usr/bin/plot
        for i in ${ALL}; do \
                (install -s -o bin -g bin -m 755 $$i ${DESTDIR}/usr/bin/$$i); \
        done
        install -c -o bin -g bin -m 755 plot.sh ${DESTDIR}/usr/bin/plot
+       install -c -o bin -g bin -m 444 ${MAN} ${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.
-
-atoplot.o: atoplot.c /usr/include/stdio.h
-chrtab.o: chrtab.c
-crtdriver.o: crtdriver.c /usr/include/stdio.h
-crtplot.o: crtplot.c /usr/include/curses.h /usr/include/stdio.h
-crtplot.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h
-crtplot.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
-crtplot.o: /usr/include/math.h /usr/include/signal.h
-debug.o: debug.c /usr/include/stdio.h
-driver.o: driver.c /usr/include/stdio.h
-plottoa.o: plottoa.c /usr/include/stdio.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
index a944443..699d7b3 100644 (file)
@@ -1,41 +1,47 @@
 #
 #
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
+# Copyright (c) 1987 The Regents of the University of California.
+# All rights reserved.
 #
 #
-#      @(#)Makefile    4.3     (Berkeley)      %G%
+# 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    4.4 (Berkeley) %G%
 #
 CFLAGS=        -O -w
 LIBC=  /lib/libc.a
 SRCS=  sed0.c sed1.c
 OBJS=  sed0.o sed1.o
 #
 CFLAGS=        -O -w
 LIBC=  /lib/libc.a
 SRCS=  sed0.c sed1.c
 OBJS=  sed0.o sed1.o
+MAN=   sed.0
 
 all: sed
 
 
 all: sed
 
-sed:   ${OBJS} ${LIBC}
+sed: ${OBJS} ${LIBC}
        ${CC} -o $@ ${CFLAGS} ${OBJS}
 
        ${CC} -o $@ ${CFLAGS} ${OBJS}
 
-clean: FRC
+clean:
        rm -f ${OBJS} core sed
 
        rm -f ${OBJS} core sed
 
-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 sed ${DESTDIR}/bin/sed
        install -s -o bin -g bin -m 755 sed ${DESTDIR}/bin/sed
+       install -c -o bin -g bin -m 444 ${MAN} ${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.
-
-sed0.o: sed0.c /usr/include/stdio.h sed.h
-sed1.o: sed1.c /usr/include/stdio.h sed.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY