Integrate install.sh into Makefile
This commit is contained in:
		
							parent
							
								
									1002782e8f
								
							
						
					
					
						commit
						e87bed00a2
					
				
					 2 changed files with 8 additions and 12 deletions
				
			
		
							
								
								
									
										8
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -1,8 +1,16 @@ | |||
| .PHONY: run | ||||
| 
 | ||||
| INSTALL_DIR = $(HOME)/.local/bin | ||||
| 
 | ||||
| build: | ||||
| 	@cargo build | ||||
| 
 | ||||
| run: build | ||||
| 	@PATH=$(PWD)/target/debug:$(PATH) ./ts-control | ||||
| 
 | ||||
| install: | ||||
| 	mkdir -p "$(INSTALL_DIR)" | ||||
| 	cargo build --release | ||||
| 	install -Dm755 -t "$(INSTALL_DIR)" \
 | ||||
| 		./target/release/teamspeak-query-lib \
 | ||||
| 		./ts-control | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue