2020-03-19 19:55:20 +00:00
|
|
|
# -*- mode: makefile-gmake; -*-
|
2019-05-02 05:18:39 +00:00
|
|
|
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
|
|
|
|
include ../lib/shared.mk
|
|
|
|
TARGET := $(XDG_DIR)/mako
|
|
|
|
|
|
|
|
init:
|
2020-03-09 17:30:45 +00:00
|
|
|
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
|
|
|
|
2021-11-28 21:33:24 +00:00
|
|
|
up: init
|
2020-03-09 17:30:45 +00:00
|
|
|
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
|
|
|
|
2021-11-28 21:33:24 +00:00
|
|
|
down:
|
2020-03-09 17:30:45 +00:00
|
|
|
$(report) header "Removing mako"
|
2019-05-02 05:18:39 +00:00
|
|
|
$(rm_link) $(TARGET)
|