From e10f5b4f144f3fd35c5c6c3474e37fd8a1fd682d Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Wed, 18 May 2011 11:53:53 +0000
Subject: [PATCH] Add new "version" makefile target to the main LUFA library
 makefile, to give an easy way to identify a LUFA release from the
 command-line.

---
 LUFA/ManPages/LibraryResources.txt | 3 +--
 LUFA/makefile                      | 5 ++++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/LUFA/ManPages/LibraryResources.txt b/LUFA/ManPages/LibraryResources.txt
index c5e636c67..8ec544bed 100644
--- a/LUFA/ManPages/LibraryResources.txt
+++ b/LUFA/ManPages/LibraryResources.txt
@@ -20,9 +20,8 @@
  *
  *  \section Sec_InDevelopment Latest In-Development Source Code
  *  Issue Tracker: http://www.lufa-lib.org/tracker \n
- *  Bazaar Access: http://www.lufa-lib.org/bzr \n
  *  SVN Access: http://www.lufa-lib.org/svn \n
- *  Git Access: http://www.lufa-lib.org/git \n
+ *  GIT Access: http://www.lufa-lib.org/git \n
  *  Latest Repository Source Archive: http://www.lufa-lib.org/latest-archive \n
  *  Commit RSS Feed: http://www.lufa-lib.org/rss \n
  *
diff --git a/LUFA/makefile b/LUFA/makefile
index 937e3a45d..46dcc0843 100644
--- a/LUFA/makefile
+++ b/LUFA/makefile
@@ -80,6 +80,9 @@ ifeq ($(origin LUFA_PATH), undefined)
 
    clean_doxygen:
 	rm -rf Documentation
+	
+   version:
+	@echo "LUFA `grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`"
 
-   .PHONY: all clean clean_list doxygen clean_doxygen
+   .PHONY: all clean clean_list doxygen clean_doxygen version
 endif
-- 
GitLab