summaryrefslogtreecommitdiff
path: root/.config/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 15:09:56 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 15:39:51 -0400
commit9f5efa128ef0c1177856682659969e2bc8accfd2 (patch)
treeaee7b0c877a7e516e59c6763196d788ac32ffa84 /.config/Makefile
parent479e2d7bcdc352626a7c4f0289d8f0c75360a978 (diff)
Makefile: Don't require to be run from a login shell
Diffstat (limited to '.config/Makefile')
-rw-r--r--.config/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/.config/Makefile b/.config/Makefile
index c4cd5d0..c530806 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
@@ -39,3 +43,4 @@ ${HOME}/Maildir/%: | ${HOME}/Maildir
.PHONY: FORCE PHONY
FORCE: ;
PHONY: ;
+endif