23 lines
		
	
	
		
			421 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			421 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
 | 
						|
SOURCE :=  $(SRC_DIR)/tmux.conf
 | 
						|
TARGET :=  ~/.tmux.conf
 | 
						|
 | 
						|
include ../lib/shared.mk
 | 
						|
 | 
						|
install: | init update
 | 
						|
 | 
						|
init:
 | 
						|
$(info => tmux init)
 | 
						|
ifeq ($(call cmd_exist,tmux), true)
 | 
						|
	$(info => Setting up tmux)
 | 
						|
	$(mk_link) $(SOURCE) $(TARGET)
 | 
						|
else
 | 
						|
	$(report) warn "tmux not installed."
 | 
						|
endif
 | 
						|
 | 
						|
update:
 | 
						|
 | 
						|
remove:
 | 
						|
	$(info => Remvoing tmux config)
 | 
						|
	$(rm_link) $(TARGET)
 |