[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Conditionals in Makefile.am
From: |
Pekka Riikonen |
Subject: |
Conditionals in Makefile.am |
Date: |
Thu, 24 Oct 2002 18:06:32 +0200 (CEST) |
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/
- Conditionals in Makefile.am,
Pekka Riikonen <=