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 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile') 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) $@ -- cgit v1.2.3