xref: /src/contrib/bmake/mk/prlist.mk (revision c60f6422ffae3ea85e7b10bad950ad27c463af18)
1# $Id: prlist.mk,v 1.7 2025/08/09 22:42:24 sjg Exp $
2#
3#	@(#) Copyright (c) 2006, Simon J. Gerraty
4#
5#	SPDX-License-Identifier: BSD-2-Clause
6#
7#	Please send copies of changes and bug-fixes to:
8#	sjg@crufty.net
9#
10
11.if !target(__${.PARSEFILE}__)
12__${.PARSEFILE}__: .NOTMAIN
13
14# this needs to be included after all the lists it will process
15# are defined - which is why it is a separate file.
16# Usage looks like:
17#   MAKEFLAGS= ${.MAKE} -f ${MAKEFILE} prlist.SOMETHING_HUGE | xargs whatever
18#
19.if make(prlist.*)
20.for t in ${.TARGETS:Mprlist.*:E}
21.if empty($t)
22prlist.$t:
23.else
24prlist.$t:	${$t:O:u:S,^,prlist-,}
25${$t:O:u:S,^,prlist-,}: .PHONY
26	@echo "${.TARGET:S,prlist-,,}"
27.endif
28.endfor
29.endif
30
31.endif
32