help-make
[Top][All Lists]
Advanced

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

Is there some option to make all targets phony?


From: Pan ruochen
Subject: Is there some option to make all targets phony?
Date: Mon, 17 Aug 2009 14:22:49 +0800

Hi All,

Here is my Makefile:
--------------------------------------------------------
PHONY: api FW
all: api FW
api:
    @make -C DIR1 -n api
    @make -C DIR2 -n api
FW:
    @make -C DIR1 -n clean depend all
    @make -C DIR2 -n clean depend all
--------------------------------------------------------
I want to expand all the commands excuted by make. But there are some problems since the target `clean' is not really executed.
If the immediate object files and the final target file (ELF executable) are present, make checks nothing has been changed. So make just
prints "Nothing to be done for `api' " instead of a series of commands to get the final target.

Is there some option to force make regard all targets in the Makefile phony, so that I can get the commands whithout cleaning
the immediate object files and the final target file.


PRC
Aug 17, 2009

reply via email to

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