Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2005:
[Freeciv-Dev] (PR#12990) [PATCH] Compilation failure when builddir != sr
Home

[Freeciv-Dev] (PR#12990) [PATCH] Compilation failure when builddir != sr

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12990) [PATCH] Compilation failure when builddir != srcdir
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Thu, 5 May 2005 05:34:17 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12990 >

Reported by Egor Vyscrebentsov <evyscr@xxxxxxxxx>.

Index: server/scripting/Makefile.am
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/scripting/Makefile.am,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile.am
--- server/scripting/Makefile.am        3 May 2005 15:09:05 -0000       1.2
+++ server/scripting/Makefile.am        5 May 2005 12:32:59 -0000
@@ -27,9 +27,9 @@
                script_signal.c \
                script_signal.h
 
-BUILT_SOURCES = api_gen.c api_gen.h
-CLEANFILES = api_gen.c api_gen.h
+BUILT_SOURCES = $(srcdir)/api_gen.c $(srcdir)/api_gen.h
+CLEANFILES = $(srcdir)/api_gen.c $(srcdir)/api_gen.h
 
-api_gen.c api_gen.h: api.pkg
-       $(top_srcdir)/dependencies/tolua/tolua -o api_gen.c -H api_gen.h api.pkg
+$(srcdir)/api_gen.c $(srcdir)/api_gen.h: $(srcdir)/api.pkg
+       $(top_builddir)/dependencies/tolua/tolua -n api -o $(srcdir)/api_gen.c 
-H $(srcdir)/api_gen.h $(srcdir)/api.pkg
 

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