update mk files

This commit is contained in:
Kai Tetzlaff (R&S) 2012-08-17 13:28:13 +02:00
parent 542f63402b
commit 1bb2575541
2 changed files with 8 additions and 3 deletions

View File

@ -18,6 +18,7 @@ EMACS := $(or $(EMACS_OSX),$(EMACS_W32),emacs)
ifeq (cygwin,$(HOSTENV))
ifneq (,$(findstring emacs/bin/emacs.exe,$(EMACS)))
EMACS_CYGWIN := emacs
EMACS := $(shell cygpath `cygpath -d '$(EMACS)'`)
fixpath-emacs = $(subst $(sp),?,$(shell cygpath -ma $(call fixpath-cyg,$(1))))
endif
endif

View File

@ -2,13 +2,17 @@
# general emacs lisp pattern rules
# #########################################################################
%/elisp-all:
"$(call fixpath-shell,$(MAKE))" -C $* $(@F)
$(call fixpath-shell,$(MAKE)) -C $* $(@F)
%/.dir:
$(MD) $(call fixpath-shell,$(@D))
touch $@
%.elc : %.el
"$(call fixpath-shell,$(EMACS))"\
$(call fixpath-shell,$(EMACS))\
--eval '(setq vc-handled-backends nil)' -batch -q -no-site-file\
$(addprefix -L ,$(LOAD_PATH)) $(EMACSFLAGS)\
-f batch-byte-compile $(call emacspath,$?)
-f batch-byte-compile $?
# Local Variables:
# tab-width: 2