# -*- mode: makefile-gmake; -*-
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

include ../lib/shared.mk
TARGET := ~/.password-store

up:
	if (( $$+commands[pass] )) ; then
		$(report) header "Setting up pass"
		[ -e $(TARGET) ] \
			&& $(mk_link) $(SRC)/extensions $(TARGET)/.extensions \
			|| $(report) warn "$(TARGET) doesn't exist. Skipping."
	else
		$(report) debug " pass not installed. Skipping."
	fi

down:
	$(report) header "Removing pass"
	$(rm_link) $(TARGET)