dotfiles/pass/makefile
2021-11-28 16:33:24 -05:00

20 lines
490 B
Makefile

# -*- 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)