Don't use relative paths to refer to dirs; this breaks if we build
out-of-tree. We better use $(top_builddir).

Signed-off-by: Robert Schwebel <[EMAIL PROTECTED]>

---

 cscc/java/Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: cscc/java/Makefile.am
===================================================================
--- cscc/java/Makefile.am.orig
+++ cscc/java/Makefile.am
@@ -61,7 +61,7 @@ BUILT_SOURCES = $(STAMP) $(TREECC_OUTPUT
 
 libILJava_a_DEPENDENCIES = $(STAMP)
 
-$(STAMP): $(TREECC_INPUTS) ../../codegen/$(STAMP)
+$(STAMP): $(TREECC_INPUTS) $(top_builddir)/codegen/$(STAMP)
        $(TREECC) $(srcdir)/java_defs.tc && touch $@
 
 java_scanner.l: java_grammar.c

--
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

_______________________________________________
Developers mailing list
[email protected]
http://dotgnu.org/mailman/listinfo/developers

Reply via email to