2019-05-02 05:18:39 +00:00
|
|
|
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)
|
2019-06-15 01:01:31 +00:00
|
|
|
else
|
|
|
|
$(report) warn "mako not installed. Skipping."
|
2019-05-02 05:18:39 +00:00
|
|
|
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)
|