classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: FYI: build fixlet for gcj


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: build fixlet for gcj
Date: 18 Jul 2005 12:47:46 -0600

I'm checking this in.

If we remove a .java file from Classpath, the gcj build will fail
because the generated dependencies will tell it to find the missing
file (and it will try to rebuild it and then fail).

This patch fixes the problem, using the same technique used for C.
Namely, we emit a phone "foo.java:" target for all the source files,
so that if they are missing we don't try to build them.

Tom

Index: ChangeLog
from  Tom Tromey  <address@hidden>
        * lib/Makefile.gcj (%.stamp): Added -MP.

Index: lib/Makefile.gcj
===================================================================
RCS file: /cvsroot/classpath/classpath/lib/Makefile.gcj,v
retrieving revision 1.2
diff -u -r1.2 Makefile.gcj
--- lib/Makefile.gcj 8 Jul 2005 16:48:27 -0000 1.2
+++ lib/Makefile.gcj 18 Jul 2005 18:48:59 -0000
@@ -28,5 +28,5 @@
 # make the target be the stamp file.  This ensures that if a needed
 # source is changed, this rule is re-run for the appropriate package.
 %.stamp: %.list
-       $(GCJF) -MD -MF ${@:.stamp=.deps} -MT $@ @$<
+       $(GCJF) -MD -MF ${@:.stamp=.deps} -MT $@ -MP @$<
        echo timestamp > $@




reply via email to

[Prev in Thread] Current Thread [Next in Thread]