diff --git a/Makefile b/Makefile index 2d3cb67b7..6e779514a 100644 --- a/Makefile +++ b/Makefile @@ -203,7 +203,7 @@ build-info.h: $(GIT_INDEX) main: examples/main/main.cpp build-info.h ggml.o llama.o common.o $(OBJS) - $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) + $(CXX) $(CXXFLAGS) $(filter-out build-info.h,$^) -o $@ $(LDFLAGS) @echo @echo '==== Run ./main -h for help. ====' @echo