[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] makefile syntax
- From: Julien Cugnière <julien.cugniere@xxxxxxxxxx>
- Date: Sat, 7 Jan 2006 23:46:58 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PkNZJUi4ZIZklS3cVxK5N5+aVFiinCA9oa5Fbw8LRH2lNFQUkIdqaeljs97Vd4ZPalFlYG27OAX5wa7o3/e1PN3zc3eBhHR0urWe6effF3J2zk6bxjXzO2cfzv2i9QqPtqvZPB/enDf9Xx6oXG0cXy1Sx+3Y8r7II3wX7lJvcUY=
On 1/7/06, Matthew Leverton <meffer@xxxxxxxxxx> wrote:
> I wanted to just:
>
> MAKE_LIB += new command
>
> but it doesn't put the additional command on a new line. Is there
> anyway to do that?
There is, but it requires a big pile of ugly hacks, each one uglier
than the previous :-)
NOTHING :=
SPACE := $(NOTHING) $(NOTHING)
define NEWLINE
$(SPACE)
$(SPACE)
endef
MAKELIB = echo foo
MAKELIB += $(NEWLINE) echo bar
default:
$(MAKELIB)
The above makefile prints:
echo foo
foo
echo bar
bar
Maybe there's another way to do what you want, but I'm too tired to
think right now...
--
Julien Cugnière