dotfiles/tridactyl/makefile

29 lines
656 B
Makefile
Raw Normal View History

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
install: | init update
init:
2019-12-15 06:37:19 +00:00
$(info => setting up Tridaycl)
ifeq "$(IS_MAC)" "true"
$(MAKE) -C $(SRC_DIR) setup
else ifeq "$(call cmd_exist,firefox)" "true"
$(MAKE) -C $(SRC_DIR) setup
2019-06-16 22:58:36 +00:00
else
$(report) warn "This doesn't seem to be an env for Tridactyl. Skipping."
endif
2019-12-15 06:37:19 +00:00
setup:
$(mk_link) $(SRC_DIR) $(RC_TARGET)
$(mk_link) $(SRC_DIR)/scripts $(SCRIPTS_TARGET)
update:
remove:
$(info => Remvoing tridactyl )
2019-12-15 06:37:19 +00:00
$(rm_link) $(RC_TARGET)
$(rm_link) $(SCRIPTS_TARGET)