dotfiles/mako/makefile

24 lines
469 B
Makefile
Raw Normal View History

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)
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)