我有一个简单的Makefile项目,我只想要make install
将文件复制到目标文件夹中,即:
all:
@echo "Nothing to build"
install:
cp ./*.wav /usr/share/snd
my_custom_target:
@echo "For testing purposes"
然而,每当我尝试构建任何目标(例如:clean、all、install、my_custom_target等),它们都仅仅回显“
Nothing to be done for 'clean'
”,“Nothing to be done for 'all'
”等。我猜想一个makefile项目希望至少构建一些东西(例如:C/C++文件等)。有人对如何解决这个问题有什么建议吗?
谢谢。