dotfiles/kitty/makefile

22 lines
464 B
Makefile
Raw Normal View History

2020-07-22 00:39:57 +00:00
# -*- mode: makefile-gmake; -*-
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
2021-11-28 21:33:24 +00:00
requires := kitty
2020-07-22 00:39:57 +00:00
include ../lib/shared.mk
CONFIG_DIR := $(XDG_DIR)/kitty
install: | init update
2021-11-28 21:33:24 +00:00
up:
2020-07-22 00:39:57 +00:00
if (( $$+commands[kitty] )) ; then
$(report) header "Setting up kitty"
$(mk_link) $(SRC) $(CONFIG_DIR)
else
$(report) debug "kitty not installed. Skipping."
fi
2021-11-28 21:33:24 +00:00
down:
2020-07-22 00:39:57 +00:00
$(report) header "removing up kitty"
rm -r $(CONFIG_DIR) ; $(report) "removed dir"