dotfiles/pass/makefile
James Patrick 0bc487ccc9 Added pass extensions
To tried to properly explain. Pretty easy to read. Go do that.
2020-07-03 02:39:14 -04:00

25 lines
528 B
Makefile

# -*- mode: makefile-gmake; -*-
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
include ../lib/shared.mk
TARGET := ~/.password-store
install: | init update
init:
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
update:
remove:
$(report) header "Removing pass"
$(rm_link) $(TARGET)