这是我的(部分)makefile
:
OBJDIR = ../../../build_project/obj
BINDIR = ../../../build_project/bin
SOURCES = $(wildcard *.cpp)
OBJECTS = $(addprefix $(OBJDIR)/, $(SOURCES:.cpp=.o))
TARGET = $(BINDIR)/project
.PHONY: clean distclean
clean:
rm $(OBJECTS)
当我运行时make clean
,这是我得到的输出:
rm
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
make: *** [clean] Error 64
我不知道该怎么做这个错误。我格式OBJECTS
错误吗?