mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Added wmakePrintBuild for determining the build version
- the $WM_PROJECT_DIR/.build file is automatically updated. This file is (and must be) ignored by git.
This commit is contained in:
@ -1,14 +1,10 @@
|
||||
.SUFFIXES: .Cver
|
||||
|
||||
#
|
||||
# update version string from git, or just use the WM_PROJECT_VERSION
|
||||
# note: could also add --abbrev=32 for maximum resolution
|
||||
# update version string
|
||||
#
|
||||
Cvertoo = \
|
||||
sed s/WM_PROJECT_VERSION/\"$(shell \
|
||||
git describe --always --tags 2>/dev/null || \
|
||||
echo $(WM_PROJECT_VERSION) \
|
||||
)\"/ $$SOURCE > $*.C; \
|
||||
sed s/WM_PROJECT_VERSION/\"$(shell wmakePrintBuild)\"/ $$SOURCE > $*.C; \
|
||||
$(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.Cver.dep:
|
||||
|
||||
Reference in New Issue
Block a user