SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk TARGET := $(XDG_DIR)/i3 install: | init update init: ifeq ($(call cmd_exist,i3), true) $(info => Setting up i3) $(mk_link) $(SRC) $(TARGET) endif update: ifeq ($(call cmd_exist,i3-msg), true) $(info => Reloading i3-msg) swaymsg reload ; $(report) "i3 reload" endif remove: $(info => Remvoing sway) $(rm_link) $(TARGET)