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