[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Macros and include?

From: timothy . llewellynn
Subject: Macros and include?
Date: Wed, 23 Apr 2003 14:12:47 +0200


I have a small problem that I'm trying to solve. I'd like somehow to reduce
the following include statements in make to some sort of loop, e.g

MODDIR := submod1
include $(MODDIR)/

MODDIR := submod2
include $(MODDIR)/


Change to:

MODDIRS := submod1 submod2
Some sort of iteration of MODDIRS 
MODDIR := ${dir}
include ${dir}/

Does anyone know how to do this, or if its possible? 

The best I've been able to do is

INCMODS = submod1/ submod2/ ...
include $(INCMODS)

Thou this doesn't really help me, as each uses MODDIR to know
where the module was included from, is there an alternative way to find out
this information? 


Attachment: InterScan_Disclaimer.txt
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]