# # Minimum test-case for bug. # # 1. Defining the variable here works. TEST_LIST = foo test: $(TEST_LIST:%=%__FOO__) @echo \$$\(TEST_LIST\) is $(TEST_LIST) %__FOO__: @echo Got prerequisite $(@:%__FOO__=%) # 2. Comment above TEST_LIST defn and uncomment the one below one # doesn't work. (tested with GNU Make v3.81) # TEST_LIST = test1 # 3. Uncomment this PHONY defn and neither TEST_LIST defn works. #.PHONY: test1 test1__FOO__