Makefile
Hi,
This is very simple question. I searched Google but could not find the answer.
I have a number of source files like:
file_1.cxx, file_2.cxx, .........., file_40.cxx .
To compile all files, I can write (in Makefile):
SOURCE = $(wildcard *.cxx)
But I want to compile only selected files like from file_11.cxx to file_22.cxx. I tried this (as in linux command line):
SOURCE = $(wildcard *_[11-22].cxx)
But it is not working. Any idea will be greatly appreciated.
Also, I noticed that only on digit inside [] in recognized in linux command line. I.e., if I write file_[0-9].cxx, then it will be fine but if I write file_[11-20].cxx, it will not recognized.
Thanks.
Last edited by manojg; 05-05-2009 at 12:28 PM.
|