I am not able to reproduce this. Recently, I have been reading Bruce Eckel's online book "Thinking in Java, 2nd edition, Revision 11". It includes some samples and training modules which are simple java files with a GNU makefile to compile them. Here is an example: > D:\Documents\BOOKS\ThinkingInJava(v2)\c02>type makefile > # From Thinking in Java, 2nd Edition > # At http://www.BruceEckel.com > # (c) Bruce Eckel 2000 > # Copyright notice in Copyright.txt > # Automatically-generated MAKEFILE > # For examples in directory .\c02 > # using the JDK 1.2 compiler > # Invoke with: make > > JVC = javac > JVCFLAGS = > .SUFFIXES : .class .java > .java.class : > $(JVC) $(JVCFLAGS) $< > > classes = \ > HelloDate.class\ > HelloWorld.class\ > ATypeName.class\ > DataOnly.class\ > Storage.class\ > StaticFun.class\ > Args.class\ > AllTheColorsOfTheRainbow.class > > all : $(classes) > > clean: > rm -f $(classes) > If I then run this from a DOS prompt: D:\Documents\BOOKS\ThinkingInJava(v2)\c02>c:/rob/make-3.79.1/windebug/make -v al l GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for Windows32 Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Report bugs to <[EMAIL PROTECTED]>. D:\Documents\BOOKS\ThinkingInJava(v2)\c02>path PATH=C:\WINNT\system32;c:\jdk1.3\bin D:\Documents\BOOKS\ThinkingInJava(v2)\c02>c:/rob/make-3.79.1/windebug/make all javac HelloDate.java javac HelloWorld.java javac ATypeName.java javac DataOnly.java javac Storage.java javac StaticFun.java javac Args.java javac AllTheColorsOfTheRainbow.java It seems to work even with very long file names. I wonder if we could learn how this user compiled their copy of make 3.79.1 and what tools/environment they are using in their environment. Rob "Paul D. Smith" wrote: > I am using make v3791 (mak3791) on Windows NT (and obtained the same result > with v379) > When trying to create a Makefile for a Java project I encountered the > following problem: > > The following rule is not working: %.class: %.java > For some reason make never finds file with the extension *.java. > My assumption is that because of the 4 letters extension the DOS shell gets > confused. > > So I tried: %.CLA : %.JAV > This seemed to work find but not always. > For example if we consider the source AnnuityCumDevAlert.java and its > compiled version AnnuityCumDevAlert.class, DOS transforms the names into: > AN1FFA~1.CLA for AnnuityCumDecAlert.class > ANNUIT~1.JAV for AnnuityCumDecAlert.java > Obviously AN1FFA~1 and ANNUIT~1 are different. > > I would really appreciate some help here. > > Thanks, > Helgo > > _______________________________________________ > Help-make mailing list > [EMAIL PROTECTED] > http://mail.gnu.org/mailman/listinfo/help-make > > -- > ------------------------------------------------------------------------------- > Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: > http://www.gnu.org http://www.paulandlesley.org/gmake/ > "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
begin:vcard n:Tulloh;Rob tel;cell:+39-(0)339-346-3294 tel;work:+39-(0)6-596-65629 x-mozilla-html:FALSE org:Tivoli Systems;Foundation Solutions Development version:2.1 email;internet:[EMAIL PROTECTED] title:Principal Engineer adr;quoted-printable:;;Via Sciangai 53=0D=0AB3-213;Rome;;00189;Italy fn:Rob Tulloh end:vcard
