From f4ddbdb742cf6310ca18efb38c284690598c7477 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 6 Mar 2015 00:00:07 +0900 Subject: [PATCH] Remove append_load vaiable --- Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 3c0b5a6..85d5939 100644 --- a/Makefile +++ b/Makefile @@ -333,8 +333,7 @@ endif # Load codes are defined by following SETUP_LOAD: indicator. # String DOTFILES_DIR in the load codes will be replaced into the value of # $(dotfiles_dir). -# If append_load is non-empty, the load codes are appended to $(topfile), -# otherwise the code will be just printed out to stdout. +# The load codes are appended to $(topfile). setup_rcs := setup-rc-vimrc setup-rc-tmux.conf setup-rc-emacs.el setup-rc: $(setup_rcs) @@ -344,12 +343,7 @@ 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)/% -ifeq (,$(append_load)) - @echo "\`append_load' is not defined. Just print load command." - cat "$<" | $(command_extract_setup_load) -else cat "$<" | $(command_extract_setup_load) | tee -a "$(topfile)" -endif setup-rc-vimrc: topfile := $(home)/.vimrc setup-rc-tmux.conf: topfile := $(home)/.tmux.conf