lkml.org 
[lkml]   [2005]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to retrieve version from kernel source (the right way)?
Hi.

Sam Ravnborg wrote:
>>otaku@gimli linux-2.6.10 $ make kernelrelease
>>make: *** No rule to make target `kernelrelease'. Stop.
> I works with the 2.6 kernel.

As Andreas Gruenbacher pointed out, this feature has been implemented
just about 8 weeks ago. He also gave the following snippet as a backward
compatible solution:

=== cut ===
echo -e 'foo:\n\t@echo $(KERNELRELEASE)\ninclude Makefile' \
| make -f-
=== cut ===
This works fine.

Thanks to everyone for your tips and answers.

Bye, Mike
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [from the cache]
©2003-2011 Jasper Spaans