help-make
[Top][All Lists]
Advanced

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

How to get all the dependences of a target?


From: Peng Yu
Subject: How to get all the dependences of a target?
Date: Fri, 8 Jan 2010 11:16:58 +1800

Suppose I have multiple rules for a target. For example, I have


all: file1.txt

all: file2.txt

....

all: filen.txt


Is there a way to get all the dependences (i.e., file1.txt ...
filen.txt) in gnu make? For example, to delete all the dependent
files.

clean:
  rm <all the dependent files of 'all'>




reply via email to

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