summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-07-19 19:23:39 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-07-19 19:28:58 -0600
commitb575e899e72f78a0f810be8fc614b018f6926f6d (patch)
tree4eab4d0efb703a44a5d704200ee390f6352a31f7
parent3d872ce1c678e5d829d5e324f92b50eef02877fb (diff)
.config/Makefile: better error handling
-rw-r--r--.config/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/.config/Makefile b/.config/Makefile
index 94d0cca..ffac989 100644
--- a/.config/Makefile
+++ b/.config/Makefile
@@ -4,8 +4,8 @@ default: all; @:
%:
. ~/.profile && $(MAKE) '$@'
else
-SHELL = /bin/bash
+SHELL = /bin/bash -o pipefail
GIT_DIR = ${HOME}/.git
targets = \
@@ -16,7 +16,8 @@ targets = \
all: $(targets)
clean:
- rm -f $(targets)
+ rm -f -- $(targets)
+.PHONY: all clean
${HOME}/.folders: ${HOME}/Maildir $(MAKEFILE_LIST)
find $< -mindepth 2 -maxdepth 2 \( -type f -name "maildirfolder" -o -type d -name new -o -type d -name tmp -o -type d -name cur \) -printf '%P\0' | xargs -r0 dirname -z -- | sort -zu | xargs -0 printf -- '.%s\n' | grep -vP '^\.FOLDERS.Ham.20(?!15)' > '$@'
@@ -40,7 +41,5 @@ ${HOME}/Maildir/%: | ${HOME}/Maildir
touch '$@'/maildirfolder
.DELETE_ON_ERROR:
-.PHONY: FORCE PHONY
-FORCE: ;
-PHONY: ;
+.SECONDARY:
endif