dotfiles/mako/makefile

29 lines
598 B
Makefile
Raw Normal View History

# -*- 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:
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
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:
$(report) header "Removing mako"
2019-05-02 05:18:39 +00:00
$(rm_link) $(TARGET)