bug-make
[Top][All Lists]
Advanced

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

need access to Makefile path


From: Dave Yost
Subject: need access to Makefile path
Date: Sun, 16 May 2004 23:23:58 -0700

Consider a Makefile that starts thus:

    include ../../../Makefile-master

It would be nice if this included Makefile-master knew where it was, so it 
could do stuff like this:

    root := $(MAKEFILE-PARENT-DIR)
    
    classesDir := $(root)/classes

I use this unsatisfactory workaround:

Makefile:

    root := ../../..
    include Makefile-master

Makefile-master:

    classesDir := $(root)/classes


A shell script can know where it is and what its name is.  The same should be 
true for Makefiles.

Thanks

Dave




reply via email to

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