mk/emacsd-defs.mk
2012-08-05 22:33:54 +02:00

60 lines
1.5 KiB
Makefile

ifndef HAS_UTIL_MK
include $(HOME)/Documents/mk/util.mk
endif
EMACS_OSX := $(wildcard $(HOME)/Work/oss/build/osx/clang/64/dbg/emacs-new/nextstep/Emacs.app/Contents/MacOS/Emacs)
EMACS_W32 :=\
$(subst ?,$(sp),$(firstword\
$(subst $(sp),?,$(wildcard $(call fixpath-make,$(ProgramW6432)/emacs/bin/emacs.exe)))\
$(subst $(sp),?,$(wildcard $(call fixpath-make,$(ProgramFiles$(oparen)x86$(cparen))/emacs/bin/emacs.exe)))\
$(subst $(sp),?,$(wildcard $(call fixpath-make,$(ProgramFiles)/emacs/bin/emacs.exe)))))
EMACS := $(or $(EMACS_OSX),$(EMACS_W32),emacs)
ifeq (cygwin,$(HOSTENV))
ifneq (,$(findstring emacs/bin/emacs.exe,$(EMACS)))
EMACS_CYGWIN := emacs
fixpath-emacs = $(subst $(sp),?,$(shell cygpath -ma $(call fixpath-cyg,$(1))))
endif
endif
ifdef fixpath-emacs
emacspath = $(foreach f,$(1),$(call fixpath-emacs,$(f)))
else
fixpath-emacs = $(1)
emacspath = $(1)
endif
HG_DIRS :=
GIT_DIRS :=
BZR_DIRS :=
SVN_DIRS :=
CVS_DIRS :=
#SHELL := sh.exe -x
#$(error E:$(EMACS))
#$(error '$(value fixpath-emacs)' '$(value emacspath)')
DOT_DIR := $(HOME)/.emacs.d
ELISP_DIR := $(DOT_DIR)/elisp-vcs
LISP_DIR := $(DOT_DIR)/lisp
INFO_DIR := $(DOT_DIR)/info
BIN_DIR := $(firstword $(wildcard $(HOME)/bin $(HOME)/Tools))
MAKEINFO := makeinfo
TEXI2DVI := texi2dvi
PS2PDF := ps2pdf
DVIPDFM := dvipdfm
CEDET_HOME := $(LISP_DIR)/cedet
#$(error '$(call emacspath,.)')
#$(error fixpath: '$(call fixpath,$(HOME))')
# Local Variables:
# tab-width: 2
# End: