Special case for Windows if emacs-nox from Cygwin installed along with native Emacs.
--- a/Makefile Tue Mar 30 23:38:28 2010 +0300
+++ b/Makefile Sat Apr 03 21:05:24 2010 +0400
@@ -6,6 +6,18 @@
$(error Home env var not set!)
endif
+host_os = unix
+ifneq '' '$(COMSPEC)'
+ host_os = windows
+endif
+
+# Special case for Windows if emacs-nox from Cygwin installed along with native Emacs.
+# So we run native Emacs to compile sources.
+EMACS = emacs
+ifeq 'windows' '$(host_os)'
+ EMACS = runemacs
+endif
+
FILES_MODE_EL := $(wildcard *-mode.el)
.PHONY: all
@@ -28,7 +40,7 @@
for file in $(FILES_MODE_EL); do \
cp -f $$file $(HOME)/.emacs.d/my-lisp; \
done
- emacs --batch \
+ $(EMACS) --batch \
--eval='(let ( (generated-autoload-file "~/.emacs.d/my-lisp/autoload-my.el") ) (update-directory-autoloads "~/.emacs.d/my-lisp") )'
.PHONY: uninstall