diff options
-rw-r--r-- | devel/mk-files/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/devel/mk-files/Makefile b/devel/mk-files/Makefile index 6cf9ce73cf8..b22ec7de6c7 100644 --- a/devel/mk-files/Makefile +++ b/devel/mk-files/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2001/10/18 21:38:32 sjg Exp $ +# $NetBSD: Makefile,v 1.3 2001/10/19 16:37:49 sjg Exp $ # DISTNAME= mk-1.2.5 @@ -17,7 +17,10 @@ NO_BUILD= yes MKFILES= autodep.mk dep.mk doc.mk lib.mk man.mk nls.mk MKFILES+= obj.mk own.mk prog.mk subdir.mk target-flags.mk -.if !exists(/usr/share/mk/bsd.prog.mk) + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} != "NetBSD" # we don't want to use these on BSD systems, since prog.mk and # lib.mk now rely on finding the correct bsd.prog.mk etc to # get the right magic on ELF systems. @@ -26,10 +29,14 @@ MKFILES+= bsd.nls.mk bsd.obj.mk bsd.own.mk bsd.prog.mk bsd.subdir.mk # need to include the commented out guys PLIST_SRC=${WRKDIR}/.PLIST_SRC + +${WRKDIR}/.PLIST_SRC: ${PKGDIR}/PLIST + @${SED} 's,^@comment.*skip-on-BSD ,,' $> > $@ + .endif do-install: -.if !exists(/usr/share/mk/sys.mk) +.if ${OPSYS} != "NetBSD" ${BSD_INSTALL_DATA} ${WRKSRC}/`uname -s`.sys.mk ${PREFIX}/share/mk/sys.mk .endif for f in ${MKFILES}; do \ @@ -38,5 +45,3 @@ do-install: .include "../../mk/bsd.pkg.mk" -${WRKDIR}/.PLIST_SRC: ${PKGDIR}/PLIST - @sed 's,^@comment.*skip-on-BSD ,,' $> > $@ |