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. |
syntax you are currentry using means
file_1.cxx -or- file_2.cxx -or- file_-.cxx -or- file_0.cxx because a set of characters between brackets is interpreted as match any of those characters for documentation on this specific feature of make I would suggest http://www.gnu.org/software/autoconf...Wildcards.html otherwise a simpler alternative would be to use another naming scheme for you source files like source_includethisone_1.cxx source_dontincludethisone_2.cxx |
Thanks.
|
All times are GMT -5. The time now is 03:34 AM. |