summaryrefslogtreecommitdiff
path: root/.config/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 17:10:00 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 17:10:00 -0400
commit39db29c39dcca6d47fbc56dffd8c0c7bf63beb51 (patch)
treec769eba9bb2da4cf6eca0421992736841bf8f8d6 /.config/Makefile
parentf181c08119e7bf00ce6520331afb737321f350ad (diff)
parent39c0d7a5c7538350e96fc135147f56cdb7d45093 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to '.config/Makefile')
-rw-r--r--.config/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/.config/Makefile b/.config/Makefile
index 18672b0..94d0cca 100644
--- a/.config/Makefile
+++ b/.config/Makefile
@@ -1,5 +1,9 @@
#!/usr/bin/make -f
-
+ifeq ($(XDG_CACHE_HOME),)
+default: all; @:
+%:
+ . ~/.profile && $(MAKE) '$@'
+else
SHELL = /bin/bash
GIT_DIR = ${HOME}/.git
@@ -15,7 +19,7 @@ clean:
rm -f $(targets)
${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' | grep -vP '^\.FOLDERS.Ham.20(?!15)' > '$@'
+ 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)' > '$@'
${GIT_DIR}/info/exclude: ${HOME}/.git.info.exclude.in $(shell echo .??*/)
( cat $<; find $^ -type f -name 'CACHEDIR.TAG' -printf '%h\n'|sed 's@^\./@/@' ) > $@
@@ -39,3 +43,4 @@ ${HOME}/Maildir/%: | ${HOME}/Maildir
.PHONY: FORCE PHONY
FORCE: ;
PHONY: ;
+endif