1246149Ssjg# $Id: prlist.mk,v 1.3 2008/07/17 16:24:57 sjg Exp $ 2246149Ssjg# 3246149Ssjg# @(#) Copyright (c) 2006, Simon J. Gerraty 4246149Ssjg# 5246149Ssjg# This file is provided in the hope that it will 6246149Ssjg# be of use. There is absolutely NO WARRANTY. 7246149Ssjg# Permission to copy, redistribute or otherwise 8246149Ssjg# use this file is hereby granted provided that 9246149Ssjg# the above copyright notice and this notice are 10246149Ssjg# left intact. 11246149Ssjg# 12246149Ssjg# Please send copies of changes and bug-fixes to: 13246149Ssjg# sjg@crufty.net 14246149Ssjg# 15246149Ssjg 16246149Ssjg.if !target(__${.PARSEFILE}__) 17246149Ssjg__${.PARSEFILE}__: 18246149Ssjg 19246149Ssjg# this needs to be included after all the lists it will process 20246149Ssjg# are defined - which is why it is a separate file. 21246149Ssjg# Usage looks like: 22246149Ssjg# MAKEFLAGS= ${.MAKE} -f ${MAKEFILE} prlist.SOMETHING_HUGE | xargs whatever 23246149Ssjg# 24246149Ssjg.if make(prlist.*) 25246149Ssjg.for t in ${.TARGETS:Mprlist.*:E} 26246149Ssjg.if empty($t) 27246149Ssjgprlist.$t: 28246149Ssjg.else 29246149Ssjgprlist.$t: ${$t:O:u:S,^,prlist-,} 30246149Ssjg${$t:O:u:S,^,prlist-,}: .PHONY 31246149Ssjg @echo "${.TARGET:S,prlist-,,}" 32246149Ssjg.endif 33246149Ssjg.endfor 34246149Ssjg.endif 35246149Ssjg 36246149Ssjg.endif 37