ce4c2a6e12
bmake is sync'd with -current make as of 2004-02-20 Fixes include: o fix for old :M parsing bug. o re-jigged unit-tests o search upwards for *.mk o fix for double free of var substitution buffers o use of getopt replaced with custom code, since the usage (re-scanning) isn't posix compatible. * arch.c: don't include ranlib.h on ELF systems mk-files adds dpadd.mk (cool magic driven by DPADD) and a re-worked warnings.mk (very cool). Also fixes: * own.mk: don't use NetBSD's _SRC_TOP_ it can cause confusion. Also don't take just 'mk' as a srctop indicator. * Generic.sys.mk: need to use ${.PARSEDIR} with exists().
37 lines
1,023 B
Makefile
37 lines
1,023 B
Makefile
# $NetBSD: Makefile,v 1.17 2004/02/21 00:15:44 sjg Exp $
|
|
#
|
|
|
|
DISTNAME= mk-20040214
|
|
PKGNAME= mk-files-20040214
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.NetBSD.org/pub/incoming/sjg/
|
|
|
|
MAINTAINER= sjg@NetBSD.org
|
|
HOMEPAGE= http://www.crufty.net/help/sjg/bmake.html
|
|
COMMENT= Portable *.mk files for the NetBSD portable bmake utility
|
|
|
|
NO_CONFIGURE= yes
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/mk
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PLIST_SRC=${WRKDIR}/.PLIST_SRC
|
|
|
|
do-install:
|
|
${WRKSRC}/install-mk ${PREFIX}/share/mk
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
# The logic below mimics what install-mk does.
|
|
# Ie. it won't install a sys.mk if a standard BSD one exists
|
|
# same goes for the bsd.*.mk files (it makes the symlinks to *.mk)
|
|
${WRKSRC}/FILES: extract
|
|
${WRKDIR}/.PLIST_SRC: ${WRKSRC}/FILES
|
|
@( ${GREP} '^[a-z].*\.mk' $> ; \
|
|
[ -f /usr/share/mk/sys.mk ] || ${ECHO} sys.mk; \
|
|
[ -f /usr/share/mk/bsd.prog.mk ] || \
|
|
for f in dep doc init lib man nls obj own prog subdir; do \
|
|
${ECHO} bsd.$$f.mk; \
|
|
done ) | ${SED} 's,^,share/mk/,' > $@
|