delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/20/18:39:26

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199705202238.AA240507925@typhoon.rose.hp.com>
Subject: Re: Using MAKE to compile JAVA
To: johne AT parallax DOT co DOT uk (John Eccleston)
Date: Tue, 20 May 1997 15:38:45 PDT
Cc: djgpp AT delorie DOT com
In-Reply-To: <864133050.469608@red.parallax.co.uk>; from "John Eccleston" at May 20, 97 12:59 (noon)

> --> Error
> make.exe: *** No rule to make target `SwapWatcher.java', needed by 
> `SwapWatcher.
> class'.  Stop.
> <-- Error

> --> Make file <--
> SwapWatcher.class : SwapWatcher.java
>         javac SwapWatcher.java
> --> Make file <--

I would guess that if you changed makefile so that it had a dummy 
rule for SwapWatcher.java it would work.

> --> Make file <--
> SwapWatcher.class : SwapWatcher.java
>         javac SwapWatcher.java
> SwapWatcher.java :
> --> Make file <--

A better way might to to write your own java suffix rules, that way you
could let make figure things out for you.

SUFFIXES = .java

.java.class 
whatever ... 

Andrew

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019