SCCS-vsn: share/mk/bsd.prog.mk 5.9
LIBTERM?= /usr/lib/libterm.a
LIBUTIL?= /usr/lib/libutil.a
LIBTERM?= /usr/lib/libterm.a
LIBUTIL?= /usr/lib/libutil.a
.if defined(SRCS)
OBJS+= ${SRCS:.c=.o}
.if defined(SRCS)
OBJS+= ${SRCS:.c=.o}
${PROG}: ${OBJS} ${LIBC} ${DPADD}
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
${PROG}: ${OBJS} ${LIBC} ${DPADD}
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
!defined(MAN7) && !defined(MAN8) && !defined(NOMAN)
MAN1= ${PROG}.0
.endif
!defined(MAN7) && !defined(MAN8) && !defined(NOMAN)
MAN1= ${PROG}.0
.endif
MANALL= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8}
PROGSUBDIR: .USE
MANALL= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8}
PROGSUBDIR: .USE
chown games.bin ${PROG})
.endif
chown games.bin ${PROG})
.endif
-install: afterinstall
-afterinstall: realinstall MANINSTALL
+install: afterinstall PROGSUBDIR
+afterinstall: realinstall maninstall
+.else
+install: PROGSUBDIR