2019-04-27 22:21:33 +00:00
|
|
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
SOURCE := $(SRC_DIR)/tmux.conf
|
|
|
|
TARGET := ~/.tmux.conf
|
|
|
|
|
|
|
|
include ../lib/shared.mk
|
|
|
|
|
|
|
|
install: | init update
|
|
|
|
|
|
|
|
init:
|
|
|
|
ifeq ($(call cmd_exist,tmux), true)
|
|
|
|
$(info => Setting up tmux)
|
|
|
|
$(mk_link) $(SOURCE) $(TARGET)
|
|
|
|
else
|
2019-06-16 22:58:36 +00:00
|
|
|
$(report) warn "tmux not installed."
|
2019-04-27 22:21:33 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
update:
|
|
|
|
|
|
|
|
remove:
|
|
|
|
$(info => Remvoing tmux config)
|
|
|
|
@ $(rm_link) $(TARGET)
|