[tuxdroid-svn] r466 - firmware/tuxcore/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-08-21 16:31:45
|
Author: jaguarondi Date: 2007-08-21 18:31:40 +0200 (Tue, 21 Aug 2007) New Revision: 466 Modified: firmware/tuxcore/trunk/Makefile Log: * Updated the doxygen documentation generation to get the version number from version.h and determine if this version comes from a tags folder otherwise it's considered unreleased. Modified: firmware/tuxcore/trunk/Makefile =================================================================== --- firmware/tuxcore/trunk/Makefile 2007-08-21 15:21:33 UTC (rev 465) +++ firmware/tuxcore/trunk/Makefile 2007-08-21 16:31:40 UTC (rev 466) @@ -165,12 +165,18 @@ ## Other dependencies -include $(shell mkdir dep 2>/dev/null) $(wildcard dep/*) -# Generate documentation +## Generate doxygen documentation .PHONY: doc REVISION = $(shell sed -n "s/\#define SVN_REV\> *//p" svnrev.h) - - #TODO get the version number from version.h here -doc: export VERSION = "Version 0.3.0 UNRELEASED (Revision $(REVISION))" +# if we're in a tag folder, we don't show 'UNRELEASED' +ifeq ($(shell sed -n "s/\#define SVN_URL\> *//p" svnrev.h | grep tags),) + UNRELEASED = "UNRELEASED " +endif +VERSION_MAJ = $(shell sed -n "s/\#define VER_MAJOR *//p" version.h) +VERSION_MIN = $(shell sed -n "s/\#define VER_MINOR *//p" version.h) +VERSION_UP = $(shell sed -n "s/\#define VER_UPDATE *//p" version.h) +doc: export VERSION = "Version $(VERSION_MAJ).$(VERSION_MIN).$(VERSION_UP)\ + $(UNRELEASED)(Revision $(REVISION))" doc: svnrev.h version.h @echo "Generating documentation for tuxcore" $(VERSION) doxygen ./Doxyfile |