[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gmake: just execute commant
From: |
Paul D. Smith |
Subject: |
Re: Gmake: just execute commant |
Date: |
24 Mar 2006 10:55:10 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
%% kristof.loots@gmail.com writes:
kl> I have a huge makefile with about 30 main targets each with there
kl> dependencies.
kl> I want to log to a file whenever the make file is execute by which
kl> user, date, and which main target is selected. I have no access
kl> to command line options because the gmake command is called from a
kl> software tool.
Add this to your makefile:
MAKELOG = mylogfile
$(shell echo "`date`:`whoami`: $(MAKE) $(MAKECMDGOALS)" > $(MAKELOG))
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@gnu.org> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist