summaryrefslogtreecommitdiffstats
path: root/20150505/mk/prlist.mk
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2015-05-10 20:02:26 +0000
committersjg <sjg@FreeBSD.org>2015-05-10 20:02:26 +0000
commit168edd726ad8a54339e142aec8bee10c893b7326 (patch)
tree1e70dc5e5574c3e64ad07c94b7275fae0b638a40 /20150505/mk/prlist.mk
parent6b3bd5224a01da593382e075c1de2696c3261ebe (diff)
downloadFreeBSD-src-168edd726ad8a54339e142aec8bee10c893b7326.zip
FreeBSD-src-168edd726ad8a54339e142aec8bee10c893b7326.tar.gz
Tag bmake-20150505
Diffstat (limited to '20150505/mk/prlist.mk')
-rw-r--r--20150505/mk/prlist.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/20150505/mk/prlist.mk b/20150505/mk/prlist.mk
new file mode 100644
index 0000000..09d7dfd
--- /dev/null
+++ b/20150505/mk/prlist.mk
@@ -0,0 +1,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:
+# sjg@crufty.net
+#
+
+.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
OpenPOWER on IntegriCloud