help-make
[Top][All Lists]
Advanced

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

Re: Print Exported Variables


From: Paul Smith
Subject: Re: Print Exported Variables
Date: Wed, 27 Apr 2011 11:16:59 -0400

On Wed, 2011-04-27 at 20:41 +0530, Ajay Jain wrote:
> Is there a way by which I can print all exported variables from within
> a Makefile to sub-make? If yes, how?

Have a rule that runs env(1):

        printenv: ; @env
        .PHONY: printenv

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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