[Top][All Lists]

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

use $(shell) in dependency part of a rule

From: Eugals
Subject: use $(shell) in dependency part of a rule
Date: Sat, 13 Dec 2003 15:25:07 +0300


I am having a problem with such a rule:
(I want to get dependencies of 'prj-Executable' from file

all: prj-Executable

prj-%: $(shell cat -s %/Makefile.dep)
       $(MAKE) -C $@

I get the following error:
/usr/bin/cat: %/Makefile.dep: No such file or directory

I tried to use $(shell) as a part of function:
readdeps=$(shell cat -s $(1)/Makefile.dep)
prj-%: $(call readdeps, %)
       $(MAKE) -C $@

but it doesn't help :(

Is there a way to do what I want?

I am testing with a win32 build of v3.80

Kind regards,

reply via email to

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