ifneq ($(filter all,$(MAKECMDGOALS)),) include $(DEPEND_FILE) endif HTH, Noel
[EMAIL PROTECTED] wrote: > > I have a make file has the following statement > > include $(DEPEND_FILE) > > Due to some other changes in the build procedure, I only want to include > this file > if the target is "all". If it is "clean", "report", "sloc", etc I DO NOT > want to > include this file. > > I could find no variable that show the current target outside of a target. > > Is there an easy way to do this with an if statement? > > _______________________________________________ > Help-make mailing list > [EMAIL PROTECTED] > http://mail.gnu.org/mailman/listinfo/help-make -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
