Dear Sir.
I'm want to use the $(wildcard) on my Makefile.
But i have a problem use the $(wildcard)
My directory is see below
My Makefile is see below.
Code:
$ > vi Makefile
SRC1="1.c"
SRC2="2.c"
SRC3="3.c"
STRING1=$(wildcard 1.c 2.c 3.c)
STRING2=$(wildcard *.c)
STRING3=$(wildcard $(SRC1) $(SRC2) $(SRC3))
all:
@echo "STRING1 $(STRING1)"
@echo "STRING2 $(STRING2)"
@echo "STRING3 $(STRING3)"
And execute my Makefile
Code:
$ > make
STRING1 1.c 2.c 3.c
STRING2 1.c 2.c 3.c
STRING3
Quesiton
1. Why can't see the STRING3 ?
2. How can see the STRING3 ?
Thank you.