summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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