Recently Written · git

prompt-mail

Ask mail-related questions and filter mail-related files with dmenu

git clone https://github.com/equwal/prompt-mail

Log | Files | Refs


Makefile (746 bytes)

1 CFG_PATH = ~/.config/prompt-mail.conf
2 BIN_PATH = /usr/local/bin/prompt-mail
3 
4 .PHONY: all config install uninstall
5 
6 all: config install
7 
8 # Empty recipes, only install if there isn't already one.
9 config: ${CFG_PATH}
10 
11 install:
12 	@echo "Putting prompt-mail in ${BIN_PATH}."
13 	@cp prompt-mail ${BIN_PATH}
14 
15 ${CFG_PATH}:
16 	@echo -e "I have setup your toiling space ${CFG_PATH}\nEdit it, slave!"
17 	@echo "#Comments must be at the beginning of the line." > ${CFG_PATH}
18 	@echo "# ~ expansion works." >> ${CFG_PATH}
19 	@echo -e "# Example line:\n" >> ${CFG_PATH}
20 	@echo "#${HOME}/.config/neomutt/aliases" >> ${CFG_PATH}
21 
22 uninstall:
23 	@echo "Removing prompt-mail from ${BIN_PATH}."
24 	@rm -f ${BIN_PATH}
25 	@echo "Removing config file ${CFG_PATH}."
26 	@rm -f ${CFG_PATH}