<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39510 >
On 08/08/07, Marko Lindqvist <[EMAIL PROTECTED]> wrote:
> Now we no longer have files generated by generate_packets.py in svn,
> I have encountered one problem.
> When fresh copy from svn is compiled first time, there is no previous
> .deps. So Makefile sees no header dependencies for compiling some .c
> files. It does not see that packets_gen.h must be generated before
> game.c can be compiled.
This should work. Needed for trunk only, as other branches still have
*_gen.? files in svn.
diff -Nurd -X.diff_ignore freeciv/common/Makefile.am freeciv/common/Makefile.am
--- freeciv/common/Makefile.am 2007-09-02 15:58:48.000000000 +0300
+++ freeciv/common/Makefile.am 2007-09-02 16:58:58.000000000 +0300
@@ -77,6 +77,11 @@
BUILT_SOURCES = packets_gen.c packets_gen.h
+# packets_gen.h must be generated before it can be included.
+# Automatic dependencies are only generated during first
+# build. We need dependency for that first build.
+%.o : packets_gen.h
# ./generate_packets makes both packets_gen.[ch]
# Feed the dependence through a fake intermediate file to avoid
Freeciv-dev mailing list