aboutsummaryrefslogtreecommitdiff
path: root/dm
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2012-01-03 11:36:48 -0500
committerRyan Kavanagh <rak@debian.org>2012-01-03 11:36:48 -0500
commit1d652330f7d1686fbc329b8f5590762c90af5150 (patch)
tree2b7b2e3df5e6657dd0c7cf44a78521aac2d4e29b /dm
parentUpdate maintainer_name in sbuild to use Debian account (diff)
Better handle encrypted files
Diffstat (limited to 'dm')
-rwxr-xr-xdm15
1 files changed, 13 insertions, 2 deletions
diff --git a/dm b/dm
index db05ab2..c548bcc 100755
--- a/dm
+++ b/dm
@@ -20,6 +20,12 @@ LOCAL_FILES = \
.zshrc \
bin/run-mailcheck
+# GPG encrypted files
+GPG_FILES = \
+ .mutt/alias.rc \
+ .ssh/id_ecdsa \
+ .ssh/id_rsa
+
# Files that are system independent.
# IMPORTANT: directories must have trailing slash
GLOBAL_FILES = \
@@ -96,8 +102,11 @@ build/.xmonad/xmonad.hs: FORCE
build/.zsh/func/prompt_wunjo_setup: FORCE
FORCE:
-.mutt/alias.rc: .mutt/alias.rc.gpg
- gpg --decrypt $^ > $@
+.mutt/alias.rc: gpg/.mutt/alias.rc.gpg
+.ssh/id_%: gpg/.ssh/id_%.gpg
+# $(patsubst gpg/,,$(wildcard gpg/.* gpg/*))
+$(GPG_FILES):
+ gpg --decrypt gpg/$@.gpg > $@
build/%: % $(SUBSTS_FILE)
[ -d $(dir $@) ] || mkdir -p $(dir $@)
@@ -181,4 +190,6 @@ verify:
clean:
rm -fr build
+clobber: clean
+ rm -f $(GPG_FILES)
.PHONY: build install clean verify merge