From c80062f8c225ac8fae36e5ff66259443cfadffbf Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 13 May 2023 14:23:50 -0300 Subject: Makefile: Add targets for ~/mnt/ FUSE filesystems --- Makefile | 11 +++++++++++ bin/backup | 1 + 2 files changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 22bb876..6f7f2a0 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,8 @@ derived-assets = \ $(XDG_DATA_HOME)/common-lisp/source \ $(XDG_DATA_HOME)/euandreh/e.list.txt \ $(HOME)/.ssh \ + $(HOME)/mnt/suyin/enc \ + $(HOME)/mnt/crypt/.keep \ $(lisp-images) @@ -66,6 +68,13 @@ $(XDG_CONFIG_HOME)/xmobar/xmobarrc: $(HOME)/.ssh: ln -s $(XDG_CONFIG_HOME)/ssh $@ +$(HOME)/mnt/suyin/enc: + sshfs suyin: $(@D) + +$(HOME)/mnt/crypt/.keep: $(HOME)/mnt/suyin/enc + if [ ! -e $@ ]; then cryfs $? $(@D); fi + touch $@ + $(XDG_DATA_HOME)/common-lisp/source: ln -s $(SRC)/libre $@ @@ -163,6 +172,8 @@ check: check-shellcheck check-perlcritic check-nixfmt check-fixme \ @cd $(PRIV_CONFIG) && $(MAKE) $@ clean: + cryfs-unmount $(HOME)/mnt/crypt + fusermount -u $(HOME)/mnt/suyin rm -rf $(derived-assets) @cd $(PRIV_CONFIG) && $(MAKE) $@ diff --git a/bin/backup b/bin/backup index 9826fd4..a6726b1 100755 --- a/bin/backup +++ b/bin/backup @@ -108,6 +108,7 @@ run() { --comment "$COMMENT" \ --exclude "$XDG_CACHE_HOME" \ --exclude ~/Downloads/ \ + --exclude ~/mnt/ \ --stats \ --compression lzma,9 \ "::{hostname}-{now}-$ARCHIVE_TAG" \ -- cgit v1.2.3