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 $(report) warn "tmux not installed." endif update: remove: $(info => Remvoing tmux config) @ $(rm_link) $(TARGET)