forked from freebsd/freebsd-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprlist.mk
36 lines (33 loc) · 915 Bytes
/
prlist.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: prlist.mk,v 1.3 2008/07/17 16:24:57 sjg Exp $
#
# @(#) Copyright (c) 2006, Simon J. Gerraty
#
# This file is provided in the hope that it will
# be of use. There is absolutely NO WARRANTY.
# Permission to copy, redistribute or otherwise
# use this file is hereby granted provided that
# the above copyright notice and this notice are
# left intact.
#
# Please send copies of changes and bug-fixes to:
#
.if !target(__${.PARSEFILE}__)
__${.PARSEFILE}__:
# this needs to be included after all the lists it will process
# are defined - which is why it is a separate file.
# Usage looks like:
# MAKEFLAGS= ${.MAKE} -f ${MAKEFILE} prlist.SOMETHING_HUGE | xargs whatever
#
.if make(prlist.*)
.for t in ${.TARGETS:Mprlist.*:E}
.if empty($t)
prlist.$t:
.else
prlist.$t: ${$t:O:u:S,^,prlist-,}
${$t:O:u:S,^,prlist-,}: .PHONY
@echo "${.TARGET:S,prlist-,,}"
.endif
.endfor
.endif
.endif