summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/forsubst.mk
blob: 00cd9b634a2b7a742c1bea7c71038551dc37c97c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# $Id: forsubst.mk,v 1.1 2014/08/21 13:44:51 apb Exp $

all: for-subst

here := ${.PARSEDIR}
# this should not run foul of the parser
.for file in ${.PARSEFILE}
for-subst:	  ${file:S;^;${here}/;g}
	@echo ".for with :S;... OK"
.endfor