minor cleanups to make man pages right
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 11 May 1990 08:12:50 +0000 (00:12 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 11 May 1990 08:12:50 +0000 (00:12 -0800)
SCCS-vsn: share/mk/bsd.prog.mk 5.9

usr/src/share/mk/bsd.prog.mk

index eabedb7..bb444ff 100644 (file)
@@ -20,6 +20,7 @@ LIBRPC?=      /usr/lib/sunrpc.a
 LIBTERM?=      /usr/lib/libterm.a
 LIBUTIL?=      /usr/lib/libutil.a
 
 LIBTERM?=      /usr/lib/libterm.a
 LIBUTIL?=      /usr/lib/libutil.a
 
+.if defined(PROG)
 .if defined(SRCS)
 
 OBJS+= ${SRCS:.c=.o}
 .if defined(SRCS)
 
 OBJS+= ${SRCS:.c=.o}
@@ -27,7 +28,7 @@ OBJS+=        ${SRCS:.c=.o}
 ${PROG}: ${OBJS} ${LIBC} ${DPADD}
        ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
 
 ${PROG}: ${OBJS} ${LIBC} ${DPADD}
        ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
 
-.else
+.else defined(PROG)
 
 SRCS= ${PROG}.c
 
 
 SRCS= ${PROG}.c
 
@@ -41,6 +42,7 @@ ${PROG}: ${SRCS} ${LIBC} ${DPADD}
        !defined(MAN7) && !defined(MAN8) && !defined(NOMAN)
 MAN1=  ${PROG}.0
 .endif
        !defined(MAN7) && !defined(MAN8) && !defined(NOMAN)
 MAN1=  ${PROG}.0
 .endif
+.endif
 MANALL=        ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8}
 
 PROGSUBDIR: .USE
 MANALL=        ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8}
 
 PROGSUBDIR: .USE
@@ -90,8 +92,10 @@ realinstall: beforeinstall PROGSUBDIR
            chown games.bin ${PROG})
 .endif
 
            chown games.bin ${PROG})
 .endif
 
-install: afterinstall
-afterinstall: realinstall MANINSTALL
+install: afterinstall PROGSUBDIR
+afterinstall: realinstall maninstall
+.else
+install: PROGSUBDIR
 .endif
 
 .if !target(lint)
 .endif
 
 .if !target(lint)