delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/18/00:48:16

Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199902171652.3433214.6@www.web-alive.com>
From: "Henry J. Cobb" <hcobb AT telegenisys DOT com>
To: jcollins AT key-tech DOT net
CC: cygwin AT sourceware DOT cygnus DOT com
In-reply-to: <DFCB901CFA52D211A35000104B2E651E59ADE6@valkyrie.is.com> (message
from John Collins on Wed, 17 Feb 1999 17:56:53 -0600)
Subject: Re: Filename problems using Java compiler
Reply-to: hcobb AT telegenisys DOT com
References: <DFCB901CFA52D211A35000104B2E651E59ADE6 AT valkyrie DOT is DOT com>

I already posted my fix to getting Java to compile a while back.

# Makefile
JAVA_CLASSES = Foo.class FooBar.class

all: $(JAVA_CLASSES)

# Each class file depends on its java file
%.class: %.java
	$(JAVA_COMPILER) $(JAVA_CSWITCH) $<
	@cp -v $(@:.class=)*.class $(INSTALL_DIR)

#Note that INSTALL_DIR is on the local classpath

#Note that javac is getting passed the proper name casing

# Additonal dependencies for each target
FooBar.class: Foo.class

# Braindead eNp-Ty make.exe workarounds when cases differ
Foo.class: Foo.java
FooBar.class: FooBar.java



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com


- Raw text -


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