diff options
Diffstat (limited to 'claws-mail/Makefile')
-rw-r--r-- | claws-mail/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/claws-mail/Makefile b/claws-mail/Makefile new file mode 100644 index 0000000..200ef24 --- /dev/null +++ b/claws-mail/Makefile @@ -0,0 +1,24 @@ +.POSIX: + +install: + mkdir -p -- ~/.claws-mail + test ! -d ~/.claws-mail/clawsrc + ln -sf -- ~/.dotfiles/claws-mail/clawsrc ~/.claws-mail/clawsrc + if test -e Mail; then \ + test -d ~/Mail && \ + test ! -e ~/.var/mail && \ + mkdir -p -- ~/.var && \ + mv -- ~/Mail ~/.var/mail; \ + else \ + mkdir -p -- ~/.var/mail; \ + fi + ln -sf -- .var/mail ~/Mail + test -e ~/.hidden && grep '^Mail$' < ~/.hidden || printf '%s\n' "Mail" >> ~/.hidden + +uninstall: + -unlink -- ~/.claws-mail/clawsrc + -rmdir -- ~/.claws-mail + -unlink -- ~/Mail + -test ! -e ~/.hidden || grep -v '^Mail$' < ~/.hidden | sponge ~/.hidden + +.PHONY: install uninstall |