[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
vpath's and included makefiles
From: |
tom_honermann |
Subject: |
vpath's and included makefiles |
Date: |
Thu, 21 Jun 2001 14:11:59 -0700 |
GNU Make 3.79.1 on AIX & Linux
So, vpath's don't seem to work for locating 'include' makefiles. For
example, you can't do this:
vpath %.d directory
-include src1.d src2.d src3.d
Is this by design? Otherwise, any hints on how to go about adding this
would be appreciated. (Or consider this an enhancement request :) )
Also, there seems to be a bug hidden in the include code somewhere.
Consider this makefile: (m1.d does not exist)
-include m1.d
all: m1.d
@echo "Deps: $^"
> gmake
>
running make with the above makefile generates no output. If you comment
out the include statement, you get:
#-include m1.d
all: m1.d
@echo "DEPS: $^"
> gmake
gmake: *** No rule to make target `m1.d', needed by `all'. Stop.
>
If a rule is added to build m1.d, then both Makefiles above seem to behave
normally.
Tom.
- vpath's and included makefiles,
tom_honermann <=