aboutsummaryrefslogblamecommitdiffstats
path: root/claws-mail/Makefile
blob: 0c431e486b0b9c3d6586487fd17ed75b0531acff (plain) (tree)
1
2
       
                    






















                                                                                           
.POSIX:
include ../common.mk

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