This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Conditionals in Makefile.am


A suggestion to conditionals in Makefiles.  Conditionals inside Makefiles
could be changed to replace the not-included lines with empty lines
instead of commenting them with '#'.  If it would just replace them with
empty lines it would allow configuration like this:

FILES = 		\
	somefile.c	\
if HAVE_SOMETHING
	someotherfile.c	\
endif
if HAVE_SOMETHING_ELSE
	somethingelse.c	\
endif
	something.c

This sort of thing is not possible now and makes it really ugly to use the
conditionals in makefiles, imo.  Currently only way to do this is to
conditionalize the entire FILES variable.   Alternatively it could just
remove the lines not to be included.

I don't think changing this would be hard (haven't looked at code though),
and it doesn't cause compatibility problems, and would make the
conditionals a lot more flexible.  Ideas?

	Pekka
________________________________________________________________________
 Pekka Riikonen                                 priikone at silcnet.org
 Secure Internet Live Conferencing (SILC)       http://silcnet.org/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]