If a MAKEFILE macro existed that was set to the current makefile's filename (eg
some/path/Makefile), modular makefiles would be easier to support.  For example,
one could have the following directory/file structure:
project/Makefile
project/component0/Makefile
project/component0/component0.mk

where project/Makefile contains:
     include component0/component0.mk

project/component0/Makefile contains:
     include component0.mk

and project/component0/component0.mk has something like:
     component0.D:=$(dir $(MAKEFILE))

     $(component0.D)/target: $(component0.D)/dependency
          # build the stuff

Any comments?

Noel



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.

Reply via email to