summaryrefslogtreecommitdiff
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
parent479e2d7bcdc352626a7c4f0289d8f0c75360a978 (diff)
Makefile: Don't require to be run from a login shell
-rw-r--r--.config/Makefile7
-rw-r--r--.config/cron/make-config2
2 files changed, 7 insertions, 2 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
diff --git a/.config/cron/make-config b/.config/cron/make-config
index d079c92..6a7e9d6 100644
--- a/.config/cron/make-config
+++ b/.config/cron/make-config
@@ -1,2 +1,2 @@
#m h dom mon dow command
-*/5 * * * * cronic bash -l -c 'make -C "$XDG_CONFIG_HOME"'
+*/5 * * * * cronic make -C ~/.config