dotfiles/tmux/makefile

22 lines
414 B
Makefile
Raw Normal View History

SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SOURCE := $(SRC_DIR)/tmux.conf
TARGET := ~/.tmux.conf
include ../lib/shared.mk
install: | init update
init:
if (( ! $$+commands[tmux] )) ; then
$(report) header "tmux not installed"
else
$(report) header "tmux init"
$(mk_link) $(SOURCE) $(TARGET)
fi
update:
remove:
$(report) header "Removing tmux config"
$(rm_link) $(TARGET)