dotfiles/pass/makefile

20 lines
490 B
Makefile
Raw Normal View History

# -*- mode: makefile-gmake; -*-
SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
include ../lib/shared.mk
TARGET := ~/.password-store
2021-11-28 21:33:24 +00:00
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
2021-11-28 21:33:24 +00:00
down:
$(report) header "Removing pass"
$(rm_link) $(TARGET)