# -*- mode: makefile-gmake; -*- 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 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 remove: $(report) header "Removing mako" $(rm_link) $(TARGET)