Hi Paul,
I recommend:
if echo "$(EMACS)" | grep -w xemacs ; \
This works for me with Cygwin (Cygnus?) make on Windows XP.
-- Ed
Paul Kinnucan wrote:
Ed Mooney writes:
> jde-2.3.4beta5/lisp/makefile fails for me like this under > /usr/ccs/bin/make on Solaris 9:
> > [EMAIL PROTECTED] make
> test -d ../../cedet-1.0beta2b -a -d ../../elib
> rm -f *.elc jde-compile-script-init
> echo "(add-to-list 'load-path \".\")" > jde-compile-script-init
> echo "(add-to-list 'load-path \"../../elib\")" > >>jde-compile-script-init
> echo "(setq debug-on-error t)" >> jde-compile-script-init
> echo "(load-file \"../../cedet-1.0beta2b/common/cedet.el\")" >> > jde-compile-script-init
> echo "(require 'jde-compat)" >> jde-compile-script-init
> echo "(require 'jde)" >>jde-compile-script-init
> if test `echo "emacs" | grep -w xemacs` ; \
> then emacs -batch -l jde-compile-script-init -f > batch-byte-compile `echo *.el` ; \
> else emacs -batch -l jde-compile-script-init \
> -f batch-byte-compile `ls -1 *.el | egrep -v 'jde-xemacs.el'`; \
> fi;
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> > Anyone else seen this? It succeeds for me with Cygwin /bin/make.
> > It works if I change
> > if test `echo "$(EMACS)" | grep -w xemacs` ; \
> > to
> > if test \`echo "$(EMACS)" | grep -w xemacs\` ; \
> > or simply to
> > if echo "$(EMACS)" | grep -w xemacs ; \
Does this work with Cygnus make? If so, perhaps I should change the makefile.
Anybody out there a make expert who'd care to venture an opinion on the best way to resolve this issue?
Paul
