chore: remove debug info in binary
This commit is contained in:
		
							parent
							
								
									6286a81500
								
							
						
					
					
						commit
						d7a8bbd710
					
				
							
								
								
									
										3
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
									
									
									
									
								
							|  | @ -2,9 +2,10 @@ | ||||||
| 
 | 
 | ||||||
| BUILD_DIR = ./build | BUILD_DIR = ./build | ||||||
| APPS := $(notdir $(wildcard ./cmd/*)) | APPS := $(notdir $(wildcard ./cmd/*)) | ||||||
|  | FLAGS := "-s -w" | ||||||
| 
 | 
 | ||||||
| all: | all: | ||||||
| 	$(foreach APP,$(APPS), go build -o $(BUILD_DIR)/$(APP) ./cmd/$(APP);) | 	$(foreach APP,$(APPS), go build -ldflags=$(FLAGS) -o $(BUILD_DIR)/$(APP) ./cmd/$(APP);) | ||||||
| 
 | 
 | ||||||
| clean: | clean: | ||||||
| 	rm -rf $(BUILD_DIR)/* | 	rm -rf $(BUILD_DIR)/* | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user