mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	Name Migration: Build the deprecation-warning 'main' binary every time (#8404)
* 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. * Adjusting 'server' name-deprecation binary to build all the time, similar to the 'main' legacy name binary.
This commit is contained in:
		
							
								
								
									
										24
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								Makefile
									
									
									
									
									
								
							| @@ -1513,15 +1513,17 @@ 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` and `server` binaries to help users migrate. | ||||||
|  | #  Eventually we will want to remove these 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 "NOTICE: 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." | server: examples/deprecation-warning/deprecation-warning.cpp | ||||||
| 	@echo "#########" | 	$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<) | ||||||
| endif | 	$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) | ||||||
|  | 	@echo "NOTICE: The 'server' binary is deprecated. Please use 'llama-server' instead." | ||||||
|  |  | ||||||
| quantize: examples/deprecation-warning/deprecation-warning.cpp | quantize: examples/deprecation-warning/deprecation-warning.cpp | ||||||
| ifneq (,$(wildcard quantize)) | ifneq (,$(wildcard quantize)) | ||||||
| @@ -1553,16 +1555,6 @@ ifneq (,$(wildcard embedding)) | |||||||
| 	@echo "#########" | 	@echo "#########" | ||||||
| endif | endif | ||||||
|  |  | ||||||
| server: examples/deprecation-warning/deprecation-warning.cpp |  | ||||||
| ifneq (,$(wildcard server)) |  | ||||||
| 	$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<) |  | ||||||
| 	$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) |  | ||||||
| 	@echo "#########" |  | ||||||
| 	@echo "WARNING: The 'server' binary is deprecated. Please use 'llama-server' instead." |  | ||||||
| 	@echo "  Remove the 'server' binary to remove this warning." |  | ||||||
| 	@echo "#########" |  | ||||||
| endif |  | ||||||
|  |  | ||||||
| finetune: examples/deprecation-warning/deprecation-warning.cpp | finetune: examples/deprecation-warning/deprecation-warning.cpp | ||||||
| ifneq (,$(wildcard finetune)) | ifneq (,$(wildcard finetune)) | ||||||
| 	$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<) | 	$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Clint Herron
					Clint Herron