[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EXEEXT and EXTRA_PROGRAMS
From: |
Stepan Kasal |
Subject: |
Re: EXEEXT and EXTRA_PROGRAMS |
Date: |
Wed, 11 Jan 2006 19:49:46 +0100 |
User-agent: |
Mutt/1.4.1i |
Hello,
> if $whatever; then
> want_foo = yes
> fi
> AM_CONDITIONAL([WANT_FOO], [test "$want_foo" = yes])
... in this case, it can be shortened to
AM_CONDITIONAL([WANT_FOO], [$whatever])
> Makefile.am:
> if WANT_FOO
> FOO = foo
> else
> FOO =
> endif
> bin_PROGRAMS = $(FOO)
> EXTRA_PROGRAMS = foo
You don't have to define EXTRA_PROGRAMS, since Automake is able to trace
possible values of bin_PROGRAMS.
Have a nice day,
Stepan