# vim: ft=make ts=4 sw=4 noet
.DEFAULT_GOAL := all
NAME    = bmake
VERSION = 20251111
GARTYPE = v2

MASTER_SITES = https://www.crufty.net/ftp/pub/sjg/
DISTFILES   += $(DISTNAME).tar.gz
WORKSRC = $(WORKDIR)/bmake

LICENSE = bmake/LICENSE

PACKAGES             += OZSWbmake
SPKG_DESC_OZSWbmake  = Portable version of NetBSD make
CATALOGNAME_OZSWbmake = bmake

# boot-strap runs unit tests in both op_build and op_install; skip them on Solaris
post-extract:
	gsed -i \
	    -e 's/build) rm -f tested; op_test;;/build) ;;/' \
	    -e '/^op_install/{ n; s/\top_test$$/\t:/ }' \
	    $(WORKSRC)/boot-strap
	@$(MAKECOOKIE)

include gar/category.mk
