summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-11-13 15:17:27 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-11-13 15:17:27 -0500
commit86e56415e8c8081c99b99209182a6b5b34361d74 (patch)
tree2fd7d5db2e9d311a031326b519af6d552dac521d /Makefile
parentd1fc37acc5294e94d9a4add0d13a02841b22444c (diff)
parentfa0728204665d9d985f212826be65a563312e7e6 (diff)
Merge branch 'master' of gitorious.org:lukeshu-dotfiles/lukeshu-dotfiles
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 998ff62..da553de 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,15 @@
CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/
NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK)))))
+ALSACTL=$(firstword $(shell which alsactl) echo)
+
targets=.nanorc .folders .crontab.cookie .alsa.save
all: $(targets)
clean:
rm -f $(targets)
.alsa.save: FORCE
- alsactl --file $(HOME)/.alsa.save store || touch '$@'
+ $(ALSACTL) --file $(HOME)/.alsa.save store || touch '$@'
.nanorc: .nanorc.in $(NANO_SHARE)
cat '$<' > '$@'
@@ -20,6 +22,12 @@ clean:
cat $^ | crontab -
date > '$@'
+# don't do anything, just create these if they doesn't exist
+.crontab.local:
+ touch '$@'
+Maildir:
+ mkdir -p '$@'/{cur,new,tmp}
+
commit:
git commit -a