2020-03-19 19:55:20 +00:00
|
|
|
# -*- mode: makefile-gmake; -*-
|
2019-04-27 22:21:33 +00:00
|
|
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
2020-03-19 19:55:20 +00:00
|
|
|
|
2019-04-27 22:21:33 +00:00
|
|
|
SOURCE := $(SRC_DIR)/tmux.conf
|
|
|
|
TARGET := ~/.tmux.conf
|
|
|
|
|
|
|
|
include ../lib/shared.mk
|
|
|
|
|
|
|
|
install: | init update
|
|
|
|
|
|
|
|
init:
|
2020-03-09 17:30:45 +00:00
|
|
|
if (( ! $$+commands[tmux] )) ; then
|
|
|
|
$(report) header "tmux not installed"
|
|
|
|
else
|
|
|
|
$(report) header "tmux init"
|
|
|
|
$(mk_link) $(SOURCE) $(TARGET)
|
|
|
|
fi
|
2019-04-27 22:21:33 +00:00
|
|
|
|
|
|
|
update:
|
|
|
|
|
|
|
|
remove:
|
2020-03-09 17:30:45 +00:00
|
|
|
$(report) header "Removing tmux config"
|
2019-12-13 17:00:11 +00:00
|
|
|
$(rm_link) $(TARGET)
|