dotfiles/emacs/.emacs.d/windows.mk
Tom Willemse 736cf0f37f Fix compilation on Windows, add install target
Paths on Windows get confused since I use a strange combination of
some 4 different GNU/Linux-like systems on Windows (cygwin, msys2,
msys git, WSL).

Since Windows doesn't support symlinks properly, I can't use GNU Stow
to install my files. So for Windows I copy over all the necessary
files.
2018-06-13 11:15:49 -07:00

19 lines
524 B
Makefile

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)
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