dotfiles/emacs/.emacs.d/windows.mk

19 lines
542 B
Makefile
Executable file

EMACS := C:/msys64/mingw64/bin/emacs.exe
HOME := $(APPDATA)
INSTALLDIR := $(APPDATA)/.emacs.d
BASE_DIR := $(subst \,/,$(shell cygpath -w $(CURDIR)))
.PHONY: install
ALL_LISPS := init.el init.elc $(SITE_LISPS) $(COMPILED_SITE_LISPS) \
$(INIT_LISPS) $(COMPILED_INIT_LISPS) $(AUTOLOADS_FILE)
install:
for file in $(ALL_LISPS); do \
[[ -e $$file ]] && install -Dm 644 $$file "$(INSTALLDIR)/$$file"; \
done
mkdir -p "$(INSTALLDIR)/vendor-lisp/"
for dir in $(VENDOR_DIRS); do \
cp --recursive $$dir "$(INSTALLDIR)/$$dir"; \
done