s*****w 发帖数: 1527 | 1 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 ! | a9 发帖数: 21638 | 2 DISTRO=ubuntu make -f myMakeFile试试
cpp
$(
But
【在 s*****w 的大作中提到】 : 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.
| s*****w 发帖数: 1527 | 3 didn't work, :(
【在 a9 的大作中提到】 : DISTRO=ubuntu make -f myMakeFile试试 : : cpp : $( : But
|
|