1 # $Id: prlist.mk,v 1.3 2008/07/17 16:24:57 sjg Exp $
3 # @(#) Copyright (c) 2006, Simon J. Gerraty
5 # This file is provided in the hope that it will
6 # be of use. There is absolutely NO WARRANTY.
7 # Permission to copy, redistribute or otherwise
8 # use this file is hereby granted provided that
9 # the above copyright notice and this notice are
12 # Please send copies of changes and bug-fixes to:
16 .if
!target
(__
${.PARSEFILE
}__
)
19 # this needs to be included after all the lists it will process
20 # are defined - which is why it is a separate file.
22 # MAKEFLAGS= ${.MAKE} -f ${MAKEFILE} prlist.SOMETHING_HUGE | xargs whatever
25 .for t in
${.TARGETS
:Mprlist.
*:E
}
29 prlist.
$t: ${$t:O
:u
:S
,^
,prlist-
,}
30 ${$t:O
:u
:S
,^
,prlist-
,}: .PHONY
31 @echo
"${.TARGET:S,prlist-,,}"