Modify the deprecation-warning 'main' binary to build every time, instead of only when a legacy binary is present. This is to help users of tutorials and other instruction sets from knowing what to do when the 'main' binary is missing and they are trying to follow instructions.
This commit is contained in:
parent
a59f8fdc85
commit
a2c41b94e7
1 changed files with 2 additions and 5 deletions
7
Makefile
7
Makefile
|
@ -1505,15 +1505,12 @@ llama-q8dot: pocs/vdot/q8dot.cpp ggml/src/ggml.o \
|
||||||
# Mark legacy binary targets as .PHONY so that they are always checked.
|
# Mark legacy binary targets as .PHONY so that they are always checked.
|
||||||
.PHONY: main quantize perplexity embedding server finetune
|
.PHONY: main quantize perplexity embedding server finetune
|
||||||
|
|
||||||
|
# NOTE: We currently will always build the deprecation-warning `main` binary to help users migrate.
|
||||||
|
# Eventually we will want to remove this target from building all the time.
|
||||||
main: examples/deprecation-warning/deprecation-warning.cpp
|
main: examples/deprecation-warning/deprecation-warning.cpp
|
||||||
ifneq (,$(wildcard main))
|
|
||||||
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
|
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
|
||||||
$(CXX) $(CXXFLAGS) $(filter-out $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
|
$(CXX) $(CXXFLAGS) $(filter-out $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
|
||||||
@echo "#########"
|
|
||||||
@echo "WARNING: The 'main' binary is deprecated. Please use 'llama-cli' instead."
|
@echo "WARNING: The 'main' binary is deprecated. Please use 'llama-cli' instead."
|
||||||
@echo " Remove the 'main' binary to remove this warning."
|
|
||||||
@echo "#########"
|
|
||||||
endif
|
|
||||||
|
|
||||||
quantize: examples/deprecation-warning/deprecation-warning.cpp
|
quantize: examples/deprecation-warning/deprecation-warning.cpp
|
||||||
ifneq (,$(wildcard quantize))
|
ifneq (,$(wildcard quantize))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue