dotfiles/tridactyl/makefile

27 lines
676 B
Makefile
Raw Permalink Normal View History

# -*- mode: makefile-gmake; -*-
2019-12-15 06:37:19 +00:00
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
include ../lib/shared.mk
2019-12-15 06:37:19 +00:00
RC_TARGET := $(XDG_DIR)/tridactyl
SCRIPTS_TARGET := ~/.local/share/tridactyl/scripts
2021-11-28 21:33:24 +00:00
up:
2021-09-14 00:11:10 +00:00
if [[ $$OSTYPE = darwin* ]] ; then
$(MAKE) -C $(SRC_DIR) setup
elif (( $$+commands[firefox] )) ; then
$(MAKE) -C $(SRC_DIR) setup
else
$(report) debug "This doesn't seem to be an env for Tridactyl. Skipping."
fi
2021-11-28 21:33:24 +00:00
down:
$(report) header "Removing Tridaycl"
$(rm_link) $(RC_TARGET)
$(rm_link) $(SCRIPTS_TARGET)
2019-12-15 06:37:19 +00:00
setup:
$(report) header "Setting up Tridaycl"
2019-12-15 06:37:19 +00:00
$(mk_link) $(SRC_DIR) $(RC_TARGET)
$(mk_link) $(SRC_DIR)/scripts $(SCRIPTS_TARGET)