diff --git a/emacs/makefile b/emacs/makefile index 59a49af..1e4d811 100644 --- a/emacs/makefile +++ b/emacs/makefile @@ -9,7 +9,7 @@ install: | init update init: ifndef IS_SSH - $(info Remote connection. Not installing emacs.) + $(info Remote connection. Not installing emacs config.) else ifneq ($(call cmd_exist,emacs), true) $(info Emacs not installed ) else @@ -20,12 +20,19 @@ endif spacemacs_init: ifeq ($(shell [ ! -e $(EMACSD) ] $(return_val_truthy) ), true) - git clone $(SPACEMACS_URL) $(EMACSD) ; $(report) "Spacemacs installed" + git clone -b develop --single-branch $(SPACEMACS_URL) $(EMACSD) ; $(report) "Spacemacs installed" else - $(report) warn "$(EMACSD) already exist. Skipping." + $(report) info "$(EMACSD) already exist. Skipping." endif update: +ifeq ($(shell [ -e $(EMACSD) ] $(return_val_truthy) ), true) + cd $(EMACSD) \ + && git pull \ + ; $(report) "Spacemacs updated" +else + $(report) info "Emacs directory doesn't exist." +endif remove: $(info => Removing Emacs config)