dotfiles/tmux/makefile

22 lines
400 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:
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."
endif
update:
remove:
$(info => Remvoing tmux config)
$(rm_link) $(TARGET)