Page 1 of 1
makefile question
Posted: Sat Apr 25, 2009 12:49 pm
by mcheung63
Dear All
a:=`date +%s`
all:
@date +%s
@sleep 2
@echo $a
@date +%s
After running make, how to make the first two numbers on screen identical?
thanks
from Peter [ email removed by JamesM ]
Re: makefile question
Posted: Sat Apr 25, 2009 2:17 pm
by whowhatwhere
I think this is the fourth post I've seen from you where you place your email in topic post. Thus, I am driven to conclude that you, sir, are an idiot and don't deserve a valid response.
Good day.
Re: makefile question
Posted: Sun Apr 26, 2009 11:10 am
by mcheung63
what is your problem if i leave my own email here?
Re: makefile question
Posted: Sun Apr 26, 2009 11:28 am
by Creature
mcheung63 wrote:what is your problem if i leave my own email here?
Actually it's unfair to say that he doesn't deserve a reply. BUT, he does have a point. It is common knowledge not to place your e-mail publicly displayed on any type of website or forum. This is because spambots parse websites sources searching for e-mails (and possibly other malware-like things can use it too).
Second, use code tags for your code.
Re: makefile question
Posted: Sun Apr 26, 2009 2:21 pm
by Zenith
Well, it's also unfair to call someone an idiot for doing something with their own intent, especially if they're aware of the consequences.
But BACK TO THE ORIGINAL POST:
Sorry, but could you explain what your code is trying to achieve? I see you printing the date twice, but I don't really get what you mean by making "two numbers on screen identical". Which numbers are you referring to? The dates?
Re: makefile question
Posted: Mon Apr 27, 2009 11:47 am
by mcheung63
Firstly,
[email protected] is not my primary email, so I don't care how much spam I will get.
secondly, I place my email here so I can search it by my email in google few years later, this is great advantage.
Re: makefile question
Posted: Mon Apr 27, 2009 10:17 pm
by mcheung63
thanks, it works