bug-automake
[Top][All Lists]
Advanced

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

conditionals and dist target


From: Marcus Brinkmann
Subject: conditionals and dist target
Date: Tue, 1 Oct 2002 17:00:39 +0200
User-agent: Mutt/1.4i

Hi,

I am using automake conditionals, and contrary to what the manual says, it
is not including both cases' source files into the make dist target.

The manual gives this example:

     bin_PROGRAMS = hello
     if LINUX
     hello_cond = hello-linux.c
     else
     hello_cond = hello-generic.c
     endif
     hello_SOURCES = hello-common.c $(hello_cond)

An equivalent example in my program does not work:

if HAVE_DOSISH_SYSTEM
system_components = w32-util.c w32-sema.c w32-io.c
else
system_components = ${ath_components} posix-util.c posix-sema.c posix-io.c
endif

libgpgme_la_SOURCES =                                                   \
        gpgme.h types.h util.h util.c conversion.c context.h ops.h      \
        ... (snipped) ...                                               \
        sema.h io.h ${system_components}                                \
        debug.c debug.h gpgme.c version.c errors.c

The sources configured on a GNU system, and then packed with make dist,
don't contain the w32 files.  The Makefile.in and Makefile only show w32 in
commented out parts and in the dependency stuff.

I have not tried the variant of defining libgpgme_la_SOURCES in the
conditional directly, as I have lots of source files.

Should the example in the manual work as I think it should?

Thanks,
Marcus


-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    address@hidden
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
address@hidden
http://www.marcus-brinkmann.de/




reply via email to

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