diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -6,11 +6,20 @@ PROCS_DEPS := $(foreach proc,$(PROCS:.mk=.deps),.${proc}) CMD ?= postbuild -EMACS := ROOT=$(shell pwd) emacs -Q --load="scripts/init.el" --load="scripts/packages.el" --batch +EMACS_NAME=cleopatra -init : ${PROCS_DEPS} +EMACS := emacsclient -s ${EMACS_NAME} + +init : ${PROCS_DEPS} needs-emacs make ${CMD} +needs-emacs : + @scripts/pretty-echo.sh "Starting" "emacs daemon" + @${EMACS} -s ${EMACS_NAME} --eval "(kill-emacs)" || true + @ROOT=$(shell pwd) emacs --daemon=${EMACS_NAME} -Q --load="scripts/init.el" + +.PHONY : needs-emacs + .%.deps : %.mk makefile @scripts/gen-deps.sh $< $@ @@ -21,11 +30,18 @@ build : prebuild postbuild : build postbuild : + @scripts/pretty-echo.sh "Updating" ".gitignore" @scripts/update-gitignore.sh $(sort ${CONFIGURE} ${ARTIFACTS} ${PROCS_DEPS}) + @scripts/pretty-echo.sh "Killing" "emacs daemon" + ${EMACS} -s ${EMACS_NAME} --eval "(kill-emacs)" @rm -f $(wildcard .*.deps) +.PHONY: prebuild build postbuild + clean : @rm -rf ${ARTIFACTS} cleanall : clean @rm -rf ${CONFIGURE} + +.PHONY : clean cleanall |