James Patrick
6c3787ef1b
This makes it a hell of a lot simpler but will lose support for BSD make. All effected machines are running gnu-make, so the cost benefit ratio ways heavily in favor of doing this.
22 lines
414 B
Makefile
22 lines
414 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:
|
|
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)
|