summaryrefslogtreecommitdiff
path: root/.config/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '.config/Makefile')
-rw-r--r--.config/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/.config/Makefile b/.config/Makefile
index 909486d..9ee3115 100644
--- a/.config/Makefile
+++ b/.config/Makefile
@@ -1,7 +1,11 @@
#!/usr/bin/make -f
+ifeq ($(XDG_CACHE_HOME),)
+default: all; @:
+%:
+ . ~/.profile && $(MAKE) '$@'
+else
-SHELL = /bin/bash
-
+SHELL = /bin/bash -o pipefail
GIT_DIR = ${HOME}/.git
targets = \
@@ -12,10 +16,11 @@ 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 -0 dirname -z -- | sort -zu | xargs -0 printf -- '.%s\n' >'$@'
+ find -L $< -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)' > '$@'
${GIT_DIR}/info/exclude: ${HOME}/.git.info.exclude.in $(shell echo .??*/)
( cat $<; find $^ -type f -name 'CACHEDIR.TAG' -printf '%h\n'|sed 's@^\./@/@' ) > $@
@@ -36,6 +41,5 @@ ${HOME}/Maildir/%: | ${HOME}/Maildir
touch '$@'/maildirfolder
.DELETE_ON_ERROR:
-.PHONY: FORCE PHONY
-FORCE: ;
-PHONY: ;
+.SECONDARY:
+endif