From: Nishi Date: Fri, 11 Oct 2024 22:26:29 +0000 (+0000) Subject: add get-version X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=7b2be217179839e6db3ae833dd1ef174f6581655;p=rbuild.git add get-version git-svn-id: file:///raid/svn-personal/rbuild/trunk@17 c68d3453-7f82-0740-9748-1d72386a946b --- diff --git a/Makefile b/Makefile index 062b73a..250a3ac 100644 --- 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)