SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk TARGET := $(XDG_DIR)/tridactyl SCRIPTS_TARGET := ~/.local/share/tridactyl/scripts install: | init update init: ifeq ($(shell $(call cmd_exist,firefox) || $(IS_MAC) ; echo $$? ), 0) $(info => Setting up Tridacyl) $(mk_link) $(SRC) $(TARGET) $(mk_link) $(SRC)/scripts $(SCRIPTS_TARGET) else $(report) warn "This doesn't seem to be an env for Tridactyl. Skipping." endif update: remove: $(info => Remvoing tridactyl ) $(rm_link) $(TARGET) $(rm_link) $(SCRIPTS_TARGET)