[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to improve compactness?
From: |
Matej Košík |
Subject: |
how to improve compactness? |
Date: |
Wed, 2 May 2012 11:00:16 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120424 Thunderbird/12.0 |
Hello,
In my Makefile, I have a series of lines like this:
dir := src/foo-01
include $(dir)/rules.mk
dir := src/foo-02
include $(dir)/rules.mk
dir := src/foo-03
include $(dir)/rules.mk
...
As I add new and new foo-directories, I have to add new entries to the
Makefile.
At "make time", I can enumerate existing foo-directories with
$(wildcard src/foo-*)
but I do not know how to generate those Makefile directives because
parametrical variables and $(foreach ...) can only expand to one-line
text where I need expansion to two lines.
I am not sure how to tackle this.
Thank you in advance for any possible help.
_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus
Scanning Service, on behalf of Celoxica Ltd.
This email and any files transmitted with it are confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed. If you have received
this in error, please contact the sender and delete the material
immediately. Whilst this email has been swept for viruses, you
should carry out your own virus check before opening any
attachment. Celoxica Ltd accepts no liability for any loss or
damage which may be caused by software viruses or interception
or interruption of this email.
- how to improve compactness?,
Matej Košík <=