unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs\terminal window\Mac OS X 10.4.7
@ 2006-07-22 14:52 Frank Murray
  2006-07-22 15:48 ` Peter Dyballa
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Murray @ 2006-07-22 14:52 UTC (permalink / raw)


Hello,

    This is a newbie question.  I am trying to compile a Java program  
in the
Emacs editor, using the command "M <meta> x compile."

The <M (Meta)> key on my Mac keyboard is the <Esc> key.  When I enter  
the
above command it prints out to the screen "make -k."  When I hit  
<Return>, it comes
back with an error message stating:

  "make -k make
  make: ***No rule to make target 'make'

Compilation exited abnormally with code 2 at [whatever the day's date  
is]"

Obviously I'm doing something wrong, or not giving the correct compile
instructions or commands.

Any help is appreciated.  Thank you.

fjm

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs\terminal window\Mac OS X 10.4.7
  2006-07-22 14:52 Frank Murray
@ 2006-07-22 15:48 ` Peter Dyballa
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2006-07-22 15:48 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 22.07.2006 um 16:52 schrieb Frank Murray:

>  "make -k make
>  make: ***No rule to make target 'make'

I presume that in your copy of GNU Emacs you'll find an info node on  
make.

GNU Emacs writes in minibuffer 'make -k' according to the default  
compile action. If your Makefile has no 'make' target you should not  
try to persuade make to make a make target. The easiest is to type  
RET -- I mean to hit the return or irregularly shaped ⌅ key with a  
much bigger ↩ or ↵ like arrow.

--
Greetings

   Pete

"Isn't vi that text editor with two modes... one that beeps and one
that corrupts your file?" -- Dan Jacobson, on comp.os.linux.advocacy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs\terminal window\Mac OS X 10.4.7
       [not found] <mailman.4351.1153642984.9609.help-gnu-emacs@gnu.org>
@ 2006-07-23 13:27 ` Colin S. Miller
  2006-07-24 15:54   ` Kevin Rodgers
  0 siblings, 1 reply; 4+ messages in thread
From: Colin S. Miller @ 2006-07-23 13:27 UTC (permalink / raw)


Frank Murray wrote:
> Hello,
> 
>    This is a newbie question.  I am trying to compile a Java program in the
> Emacs editor, using the command "M <meta> x compile."
> 
> The <M (Meta)> key on my Mac keyboard is the <Esc> key.  When I enter the
> above command it prints out to the screen "make -k."  When I hit 
> <Return>, it comes
> back with an error message stating:
> 
>  "make -k make
>  make: ***No rule to make target 'make'
> 
> Compilation exited abnormally with code 2 at [whatever the day's date is]"
> 
> Obviously I'm doing something wrong, or not giving the correct compile
> instructions or commands.
> 
> Any help is appreciated.  Thank you.
> 
> fjm
> 
> 

The "make -k" is the command you want to run to build your program,
this is correct if you are using makefiles to control the build.

You can change this to any command you want - in your case (IIRC)

jcc main.java

The default build command can be set by adding to your .emacs file

(setq compile-command "jcc main.java")



HTH,
Colin S. Miller



-- 
Replace the obvious in my email address with the first three letters of the hostname to reply.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs\terminal window\Mac OS X 10.4.7
  2006-07-23 13:27 ` Emacs\terminal window\Mac OS X 10.4.7 Colin S. Miller
@ 2006-07-24 15:54   ` Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2006-07-24 15:54 UTC (permalink / raw)


Colin S. Miller wrote:
> The "make -k" is the command you want to run to build your program,
> this is correct if you are using makefiles to control the build.
> 
> You can change this to any command you want - in your case (IIRC)
> 
> jcc main.java
> 
> The default build command can be set by adding to your .emacs file
> 
> (setq compile-command "jcc main.java")

Or better yet:

(add-hook 'java-mode-hook
	  (lambda ()
	    (set (make-local-variable 'compile-command)
		 (format "javac %s"	; what is jcc?
			 (file-name-nondirectory buffer-file-name)))))

-- 
Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-24 15:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.4351.1153642984.9609.help-gnu-emacs@gnu.org>
2006-07-23 13:27 ` Emacs\terminal window\Mac OS X 10.4.7 Colin S. Miller
2006-07-24 15:54   ` Kevin Rodgers
2006-07-22 14:52 Frank Murray
2006-07-22 15:48 ` Peter Dyballa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).