dotfiles/mako/makefile

30 lines
591 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:
if (( $$+commands[mako] )) ; then
$(report) header "Setting up mako"
$(mk_link) $(SRC) $(TARGET)
else
$(report) warn "mako not installed. Skipping."
fi
2019-05-02 05:18:39 +00:00
update:
if (( $$+commands[makoctl] )) ; then
$(report) header "Updating mako"
if [[ -n `pgrep mako` ]] ; then
makoctl reload ; $(report) "mako reload"
fi
else
$(report) debug "mako not installed"
fi
2019-05-02 05:18:39 +00:00
remove:
$(report) header "Removing mako"
2019-05-02 05:18:39 +00:00
$(rm_link) $(TARGET)