24 lines
469 B
Makefile
24 lines
469 B
Makefile
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)
|
|
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)
|