so my folder contains: 1.cpp 2.cpp 3.cpp
also 2 folders: ubuntu, redhat. Each contains ubuntu.cpp, redhat.cpp.
If distribution is ubuntu, it should compile 1.cpp, 2.cpp, 3.cpp, ubuntu.cpp
i tried it like this,
SRCS_CPP =$(filter-out file_i_dont_like.cpp, $(wildcard *.cpp), $(DISTRO)/$(
wildcard *.cpp))
the behavior is strange.
cmd line is sth like: make -f myMakeFile DISTRO=ubuntu
sorry i cannot easily show you the error yet, our project is too messy. But
it seems trying to compile sth. doesn't exist.
Many thanks for your suggestions !