[Top][All Lists]

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

[bug #23928] Add MAKEFILE variable

From: anonymous
Subject: [bug #23928] Add MAKEFILE variable
Date: Thu, 24 Jul 2008 13:35:48 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv: Gecko/2008070206 Firefox/3.0.1


                 Summary: Add MAKEFILE variable
                 Project: make
            Submitted by: None
            Submitted on: Thursday 07/24/2008 at 13:35 UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: None
           Fixed Release: None



It is often useful to recursively call the current makefile as
part of a rule.  Sometimes rules are included from a different file.  The
included file may not know the name of the make file used to start the make
process.  Having a MAKEFILE variable would solve this.

File rules.mk:
       make -f $(MAKEFILE) bar

       echo hello

File GNUmakefile:
include rules.mk

File Test.mk:
include rules.mk


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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