22 lines
670 B
Makefile
Executable file
22 lines
670 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
|
|
|
|
SITE_LISPS := $(SITE_LISPS) os-lisp/oni-windows-nt.el
|
|
COMPILED_SITE_LISPS := $(COMPILED_SITE_LISPS) os-lisp/oni-windows-nt.elc
|
|
|
|
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
|