makefile question

Programming, for all ages and all languages.
Post Reply
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

makefile question

Post 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 ]
whowhatwhere
Member
Member
Posts: 199
Joined: Sat Jun 28, 2008 6:44 pm

Re: makefile question

Post 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.
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

Re: makefile question

Post by mcheung63 »

what is your problem if i leave my own email here?
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: makefile question

Post 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.
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
User avatar
Zenith
Member
Member
Posts: 224
Joined: Tue Apr 10, 2007 4:42 pm

Re: makefile question

Post 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?
"Sufficiently advanced stupidity is indistinguishable from malice."
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

Re: makefile question

Post 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.
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

Re: makefile question

Post by mcheung63 »

thanks, it works
Post Reply