diff options
author | sjg <sjg@pkgsrc.org> | 2001-10-19 16:37:49 +0000 |
---|---|---|
committer | sjg <sjg@pkgsrc.org> | 2001-10-19 16:37:49 +0000 |
commit | f8d51511372dc295d696fb5d6859cd49e07d7b9c (patch) | |
tree | 000fff346650cf2de537577530367c12f8fc503c /devel/mk-files | |
parent | 088991d00f1e99db56447b0e34d84166e1fae910 (diff) | |
download | pkgsrc-f8d51511372dc295d696fb5d6859cd49e07d7b9c.tar.gz |
Conform better to pkgsrc conventions.
Reviewed: agc
Diffstat (limited to 'devel/mk-files')
-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 ,,' $> > $@ |