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