forked from Elara6331/itd
		
	Add uninstall rule to makefile
This commit is contained in:
		
							
								
								
									
										14
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								Makefile
									
									
									
									
									
								
							@@ -7,14 +7,20 @@ all:
 | 
			
		||||
	go build $(GOFLAGS)
 | 
			
		||||
	go build ./cmd/itctl $(GOFLAGS)
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	rm -f itctl
 | 
			
		||||
	rm -f itd
 | 
			
		||||
 | 
			
		||||
install:
 | 
			
		||||
	install -Dm755 ./itd $(BIN_PREFIX)/itd
 | 
			
		||||
	install -Dm755 ./itctl $(BIN_PREFIX)/itctl
 | 
			
		||||
	install -Dm644 ./itd.service $(SERVICE_PREFIX)/itd.service
 | 
			
		||||
	install -Dm644 ./itd.toml $(CFG_PREFIX)/itd.toml
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	rm -f itctl
 | 
			
		||||
	rm -f itd
 | 
			
		||||
uninstall:
 | 
			
		||||
	rm $(BIN_PREFIX)/itd
 | 
			
		||||
	rm $(BIN_PREFIX)/itctl
 | 
			
		||||
	rm $(SERVICE_PREFIX)/itd.service
 | 
			
		||||
	rm $(CFG_PREFIX)/itd.toml
 | 
			
		||||
 | 
			
		||||
.PHONY: all install clean
 | 
			
		||||
.PHONY: all clean install uninstall
 | 
			
		||||
		Reference in New Issue
	
	Block a user