bf3e29891c
Makefile.inc, always add the man pages for that directory, and only specify a SRCS= line (at whatever else is needed for that arch) inside a ${MACHINE_ARCH} .ifdef. The top-level Makefile includes <bsd.lib.mk> only if SRCS is defined, and otherwise just includes <bsd.man.mk>.
23 lines
498 B
Makefile
23 lines
498 B
Makefile
# $NetBSD: Makefile,v 1.12 1999/06/10 00:49:51 simonb Exp $
|
|
|
|
ARCHDIRS= arm32 i386 m68k
|
|
|
|
.for arch in ${ARCHDIRS}
|
|
.include "${.CURDIR}/${arch:C/mipse[bl]/mips/}/Makefile.inc"
|
|
.PATH: ${.CURDIR}/${arch:C/mipse[bl]/mips/}
|
|
.endfor
|
|
|
|
OBJS+= ${ASM}
|
|
POBJS+= ${ASM:.o=.po}
|
|
CLEANFILES+= ${ASM} ${POBJS}
|
|
|
|
# Build the library if SRCS is now defined ...
|
|
.if defined(SRCS)
|
|
LIB= ${MACHINE_ARCH:C/mipse[bl]/mips/}
|
|
|
|
.include <bsd.lib.mk>
|
|
.else
|
|
# ... otherwise just build the manpages
|
|
.include <bsd.man.mk>
|
|
.endif
|