Makefile
abc = hello SRCS = func_a.c func_b.c main.c list $(abc) abc ?= test SRCS += world A := char B := $(A) #all: $(SRCS) #$(SRCS): aaa bbb # @echo $@ # @echo $^ # @echo main.c: aaa bbb @echo $^ main.c: aaa ccc test: @echo $(SRCS:.c=.o) @echo $(SRCS:%.c=%.o) @echo $(SRCS:func_%=abc_%) @echo $(SRCS:.c=) @echo $(SRCS:func_%=%) @echo $(SRCS:=tst) @echo $(SRCS:.c=.c.tst) @echo $(A) A := $(B) .PHONY: aaa bbb ccc