DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (5350524bb654)

VCS Links

Line Code
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 37 38 39 40 41 42 43 44 45 46 47 48 49
SIMPLEVAR = aabb.cc
SIMPLEPERCENT = test_value%extra

SIMPLE3SUBSTNAME = SIMPLEVAR:.dd
$(SIMPLE3SUBSTNAME) = weirdval

PERCENT = dummy

SIMPLESUBST = $(SIMPLEVAR:.cc=.dd)
SIMPLE2SUBST = $(SIMPLEVAR:.cc)
SIMPLE3SUBST = $(SIMPLEVAR:.dd)
SIMPLE4SUBST = $(SIMPLEVAR:.cc=.dd=.ee)
SIMPLE5SUBST = $(SIMPLEVAR:.cc=%.dd)
PERCENTSUBST = $(SIMPLEVAR:%.cc=%.ee)
PERCENT2SUBST = $(SIMPLEVAR:aa%.cc=ff%.f)
PERCENT3SUBST = $(SIMPLEVAR:aa%.dd=gg%.gg)
PERCENT4SUBST = $(SIMPLEVAR:aa%.cc=gg)
PERCENT5SUBST = $(SIMPLEVAR:aa)
PERCENT6SUBST = $(SIMPLEVAR:%.cc=%.dd=%.ee)
PERCENT7SUBST = $(SIMPLEVAR:$(PERCENT).cc=%.dd)
PERCENT8SUBST = $(SIMPLEVAR:%.cc=$(PERCENT).dd)
PERCENT9SUBST = $(SIMPLEVAR:$(PERCENT).cc=$(PERCENT).dd)
PERCENT10SUBST = $(SIMPLEVAR:%%.bb.cc=zz.bb.cc)
PERCENT11SUBST = $(SIMPLEPERCENT:test%value%extra=other%value%extra)

SPACEDVAR = $(NULL)  ex1.c ex2.c $(NULL)
SPACEDSUBST = $(SPACEDVAR:.c=.o)

all:
	test "$(SIMPLESUBST)" = "aabb.dd"
	test "$(SIMPLE2SUBST)" = ""
	test "$(SIMPLE3SUBST)" = "weirdval"
	test "$(SIMPLE4SUBST)" = "aabb.dd=.ee"
	test "$(SIMPLE5SUBST)" = "aabb%.dd"
	test "$(PERCENTSUBST)" = "aabb.ee"
	test "$(PERCENT2SUBST)" = "ffbb.f"
	test "$(PERCENT3SUBST)" = "aabb.cc"
	test "$(PERCENT4SUBST)" = "gg"
	test "$(PERCENT5SUBST)" = ""
	test "$(PERCENT6SUBST)" = "aabb.dd=%.ee"
	test "$(PERCENT7SUBST)" = "aabb.dd"
	test "$(PERCENT8SUBST)" = "aabb.dd"
	test "$(PERCENT9SUBST)" = "aabb.dd"
	test "$(PERCENT10SUBST)" = "aabb.cc"
	test "$(PERCENT11SUBST)" = "other_value%extra"
	test "$(SPACEDSUBST)" = "ex1.o ex2.o"
	@echo TEST-PASS

PERCENT = %