[Top][All Lists]
[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
- need access to Makefile path,
Dave Yost <=
- Re: need access to Makefile path, Boris Kolpackov, 2004/05/18
- Re: need access to Makefile path, Noel Yap, 2004/05/18
- Re: need access to Makefile path, Boris Kolpackov, 2004/05/18
- Re: need access to Makefile path, Noel Yap, 2004/05/18
- Re: need access to Makefile path, Boris Kolpackov, 2004/05/18
- Re: need access to Makefile path, Noel Yap, 2004/05/18
- Re: need access to Makefile path, Noel Yap, 2004/05/18
- Re: need access to Makefile path, Boris Kolpackov, 2004/05/18
- Re: need access to Makefile path, Noel Yap, 2004/05/18
- Re: need access to Makefile path, Boris Kolpackov, 2004/05/18