dotfiles/mako/makefile
2021-11-28 16:33:24 -05:00

29 lines
598 B
Makefile

# -*- mode: makefile-gmake; -*-
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
include ../lib/shared.mk
TARGET := $(XDG_DIR)/mako
init:
if (( $$+commands[mako] )) ; then
$(report) header "Setting up mako"
$(mk_link) $(SRC) $(TARGET)
else
$(report) warn "mako not installed. Skipping."
fi
up: init
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
down:
$(report) header "Removing mako"
$(rm_link) $(TARGET)