<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Fri, 2010-04-16 at 06:21 -0400, Kristian Høgsberg wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#737373">> +.PHONY: xorg-git-version.h</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#1a1a1a">Make it depend on .git/$(git symbolic-ref HEAD) instead of using phony?</FONT></TT><BR>
<BR>
<BR>
</BLOCKQUOTE>
That command returns the file holding the commit id of the HEAD. Sounds good. Backticks should be used rather than $().<BR>
If it turns out to be bullet proof, it could be used for ChangeLog as well.
</BODY>
</HTML>