add man page, cleanup
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 26 Oct 1988 08:20:52 +0000 (00:20 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 26 Oct 1988 08:20:52 +0000 (00:20 -0800)
SCCS-vsn: usr.bin/msgs/Makefile 5.4
SCCS-vsn: old/prof/Makefile 4.4

usr/src/old/prof/Makefile
usr/src/usr.bin/msgs/Makefile

index 48e2301..b98e5c4 100644 (file)
@@ -1,44 +1,49 @@
 #
 #
-# 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%
 #
 # If you don't want to plot, take out the -Dplot and the loader
 # reference to plot.a
 CFLAGS=        -O -Dplot
 LIBC=  /lib/libc.a
 SRCS=  prof.c
 #
 # If you don't want to plot, take out the -Dplot and the loader
 # reference to plot.a
 CFLAGS=        -O -Dplot
 LIBC=  /lib/libc.a
 SRCS=  prof.c
-OBJS=  prof.o
+OBJS=
+MAN=   prof.0
 
 all: prof
 
 
 all: prof
 
-prof: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS} -lplot
+prof: ${LIBC}
+       ${CC} -o $@ ${CFLAGS} $@.c -lplot
 
 
-clean: FRC
+clean:
        rm -f ${OBJS} core prof
 
        rm -f ${OBJS} core prof
 
-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 prof ${DESTDIR}/usr/bin/prof
        install -s -o bin -g bin -m 755 prof ${DESTDIR}/usr/bin/prof
+       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.
-
-prof.o: prof.c /usr/include/stdio.h /usr/include/sys/types.h
-prof.o: /usr/include/sys/stat.h /usr/include/a.out.h /usr/include/sys/exec.h
-prof.o: /usr/include/sys/time.h /usr/include/time.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
index bcc8e05..bb88fba 100644 (file)
@@ -1,47 +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    5.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    5.4 (Berkeley) %G%
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  msgs.c
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 SRCS=  msgs.c
-OBJS=  msgs.o
+OBJS=
+MAN=   msgs.0
 
 all: msgs
 
 
 all: msgs
 
-msgs:  ${OBJS} ${LIBC}
+msgs: ${OBJS} ${LIBC}
        ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermlib
 
        ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermlib
 
-clean: FRC
+clean:
        rm -f ${OBJS} core msgs
 
        rm -f ${OBJS} core msgs
 
-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 msgs ${DESTDIR}/usr/ucb/msgs
        install -s -o bin -g bin -m 755 msgs ${DESTDIR}/usr/ucb/msgs
+       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.
-
-msgs.o: msgs.c /usr/include/stdio.h /usr/include/sys/param.h
-msgs.o: /usr/include/sys/types.h /usr/include/signal.h
-msgs.o: /usr/include/machine/machparam.h /usr/include/signal.h
-msgs.o: /usr/include/sys/dir.h /usr/include/sys/stat.h /usr/include/ctype.h
-msgs.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
-msgs.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
-msgs.o: /usr/include/setjmp.h
-msgs.o:msgs.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY