automake
[Top][All Lists]
Advanced

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

BUILT_SOURCES: dependencies not copied to build_dir


From: Michael Biebl
Subject: BUILT_SOURCES: dependencies not copied to build_dir
Date: Tue, 21 Mar 2006 08:37:15 +0100
User-agent: Thunderbird 1.5 (X11/20060309)

Hi all,

I have the following snippet in one of my Makefile.amS:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
plugin_LTLIBRARIES = libngcs.la

libngcs_la_SOURCES = \
        initng_ngcs.c \
        initng_ngcs.h \
        initng_ngcs_cmds.c \
        initng_ngcs_cmds.h \
        ngcs_common.h \
        ngcs_marshal.c \
        ngcs_marshal.h \
        ngcs_paths.h

BUILT_SOURCES = ngcs_marshal.h

EXTRA_DIST = ngcs_marshal.ngci idef.py ngcs.py

ngcs_marshal.c: ngcs_marshal.ngci idef.py
        $(srcdir)/idef.py ngcs_marshal

ngcs_marshal.h: ngcs_marshal.ngci idef.py
        $(srcdir)/idef.py ngcs_marshal
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

This works for build_dir = src_dir, ngcs_marshal.(c|h) are then
generated correctly.
But if I use build_dir != src_dir, ngcs_marshal.ngci is not copied to
the build_dir and so the build fails because the two files can not be
generated.
Am I missing something obvious here? How can I tell automake/make to
copy ngcs_marshal.ngci to the build_dir resp. what is the correct
solution for generating these two files ngcs_marshal.(c|h)?

I hope someone can enlighten me.

Thanks in advance,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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