SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk RC_TARGET := $(XDG_DIR)/tridactyl SCRIPTS_TARGET := ~/.local/share/tridactyl/scripts install: | init update init: $(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 else $(report) warn "This doesn't seem to be an env for Tridactyl. Skipping." endif setup: $(mk_link) $(SRC_DIR) $(RC_TARGET) $(mk_link) $(SRC_DIR)/scripts $(SCRIPTS_TARGET) update: remove: $(info => Remvoing tridactyl ) $(rm_link) $(RC_TARGET) $(rm_link) $(SCRIPTS_TARGET)