From 8e63867bc1023929cbad50e2e813efbbfa351556 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 6 Mar 2015 01:02:39 +0900 Subject: [PATCH] make run-emacs basically seems to work --- Makefile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index be8ef03..a7957fd 100644 --- a/Makefile +++ b/Makefile @@ -333,23 +333,26 @@ setup_rcs := setup-rc-vimrc setup-rc-tmux.conf setup-rc-emacs.el setup-rc: $(setup_rcs) .PHONY: $(setup_rcs) +setup-rc-vimrc: $(home)/.vimrc +setup-rc-tmux.conf: $(home)/.tmux.conf +setup-rc-emacs.el: $(home)/.emacs.d/init.el + +$(home)/.emacs.d/init.el: $(dotfiles_dir)/emacs.el $(home) $(home)/.emacs.d +$(home)/.vimrc: $(dotfiles_dir)/vimrc $(home) +$(home)/.tmux.conf: $(dotfiles_dir)/tmux.conf $(home) + command_extract_setup_load := $(grep) -e 'SETUP_LOAD: ' | \ sed -e 's/^.*SETUP_LOAD: //' -e 's|DOTFILES_DIR|$(dotfiles_dir)|' -$(setup_rcs): setup-rc-%: $(dotfiles_dir)/% $(home) - cat "$<" | $(command_extract_setup_load) | tee -a "$(topfile)" - -setup-rc-vimrc: topfile := $(home)/.vimrc -setup-rc-tmux.conf: topfile := $(home)/.tmux.conf -setup-rc-emacs.el: topfile := $(home)/.emacs.d/init.el +$(home)/.emacs.d/init.el $(home)/.vimrc $(home)/.tmux.conf: + cat "$<" | $(command_extract_setup_load) | tee -a "$@" -setup-rc-emacs.el: $(home)/.emacs.d # run # === -run-emacs: $(dotfiles_dir)/emacs.el +run-emacs: $(home)/.emacs.d/init.el $(emacs) -q --eval "(setq )" --load "$<"