help-make
[Top][All Lists]
Advanced

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

Capturing output of unix commands in Makefile


From: Vibhu AV
Subject: Capturing output of unix commands in Makefile
Date: Wed, 19 Jun 2002 16:16:36 -0700 (PDT)

I am interested in capturing the output of a Unix comand, say "date", 
within a makefile. I would like to assign the output to
a variable within the Makefile to use it and manipulate it.

For example, here is conceptually what I would like to do:

timeRun:
        T1 = output of date
        Run a looong job
        T2 = output of date
        timeDiff.pl T1 T2 # To get the diff between times T1 and T2


Can this be done within make?





reply via email to

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