2018-06-07 19:40:18 +02:00
|
|
|
EMACS := C:/msys64/mingw64/bin/emacs.exe
|
|
|
|
HOME := $(APPDATA)
|
2018-06-13 20:15:49 +02:00
|
|
|
INSTALLDIR := $(APPDATA)/.emacs.d
|
|
|
|
BASE_DIR := $(subst \,/,$(shell cygpath -w $(CURDIR)))
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
|
2018-07-20 08:22:22 +02:00
|
|
|
SITE_LISPS := $(SITE_LISPS) os-lisp/oni-windows-nt.el
|
|
|
|
COMPILED_SITE_LISPS := $(COMPILED_SITE_LISPS) os-lisp/oni-windows-nt.elc
|
|
|
|
|
2018-06-13 20:15:49 +02:00
|
|
|
ALL_LISPS := init.el init.elc $(SITE_LISPS) $(COMPILED_SITE_LISPS) \
|
2018-07-10 04:33:05 +02:00
|
|
|
$(INIT_LISPS) $(COMPILED_INIT_LISPS) $(AUTOLOADS_FILE)
|
2018-06-13 20:15:49 +02:00
|
|
|
|
|
|
|
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
|