diff options
author | EuAndreh <eu@euandre.org> | 2023-05-13 14:23:50 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-05-13 14:23:50 -0300 |
commit | c80062f8c225ac8fae36e5ff66259443cfadffbf (patch) | |
tree | fa5a033e44f9434e5a1a38ddbb3ace6bb16096b4 | |
parent | etc/guix/home.scm: Add "tcpdump" package (diff) | |
download | dotfiles-c80062f8c225ac8fae36e5ff66259443cfadffbf.tar.gz dotfiles-c80062f8c225ac8fae36e5ff66259443cfadffbf.tar.xz |
Makefile: Add targets for ~/mnt/ FUSE filesystems
-rw-r--r-- | Makefile | 11 | ||||
-rwxr-xr-x | bin/backup | 1 |
2 files changed, 12 insertions, 0 deletions
@@ -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) $@ @@ -108,6 +108,7 @@ run() { --comment "$COMMENT" \ --exclude "$XDG_CACHE_HOME" \ --exclude ~/Downloads/ \ + --exclude ~/mnt/ \ --stats \ --compression lzma,9 \ "::{hostname}-{now}-$ARCHIVE_TAG" \ |