]> Nishi Git Mirror - rbuild.git/commitdiff
add get-version
authorNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 22:26:29 +0000 (22:26 +0000)
committerNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 22:26:29 +0000 (22:26 +0000)
git-svn-id: file:///raid/svn-personal/rbuild/trunk@17 c68d3453-7f82-0740-9748-1d72386a946b

Makefile

index 062b73a96ded9e694335f79313e67a0e0e41cdbf..250a3aceb3d04101cfe0a061f398acaf8ca238cb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,10 +5,13 @@ PWD = `pwd`
 
 FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM)
 
-.PHONY: all ./Common ./Server ./Client clean format
+.PHONY: all get-version ./Common ./Server ./Client clean format
 
 all: ./Common ./Server ./Client
 
+get-version:
+       @grep "define RBUILD_VERSION" config.h | sed 's/#define RBUILD_VERSION //' | sed 's/"//g'
+
 ./Common::
        $(MAKE) -C $@ $(FLAGS)