summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-07-02 16:04:11 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-07-02 16:04:11 -0400
commitf8d7528a5a6ee83536ad397bbad8c46f5984d61f (patch)
tree2af66ef2f73442300066ec3b3a708740857afa8c /Makefile
parent8d5dd1b09ca02e869c89ac87f89bc790bc7c29ee (diff)
parentd383205ac60fdcf39bf2b0f813d63f91cf6e9dd5 (diff)
Merge branch 'master' of gitorious.org:lukeshu-dotfiles/lukeshu-dotfiles
Conflicts: .emacs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3e2677b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/
+NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK)))))
+
+targets=.nanorc .folders .crontab.cookie .alsa.save
+all: $(targets)
+clean:
+ rm -f $(targets)
+
+.alsa.save: PHONY
+ alsactl --file $HOME/.alsa.save store
+
+.nanorc: .nanorc.in $(NANO_SHARE)
+ cat '$<' > '$@'
+ for file in $(NANO_SHARE)/*.nanorc; do echo "include \"$$file\""; done >> '$@'
+
+.folders: Maildir
+ find ~/Maildir -maxdepth 2 -type f -name "maildirfolder" -printf '%h\n'|sed -r 's@.*/(.*\.)(.*)@.\1\2@'|sort>'$@'
+
+.crontab.cookie: .crontab .crontab.local
+ cat $^ | crontab
+ date > '$@'
+
+commit:
+ git commit -a
+
+pull:
+ git pull
+ $(MAKE)