mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
use git describe for header version, but use existing wmake framework
This commit is contained in:
@ -1,6 +1,15 @@
|
||||
.SUFFIXES: .Cver
|
||||
|
||||
Cvertoo = sed s/WM_PROJECT_VERSION/\"$(WM_PROJECT_VERSION)\"/ $$SOURCE > $*.C ; $(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
#
|
||||
# update version string from git, or just use the WM_PROJECT_VERSION
|
||||
# note: could also add --abbrev=32 for maximum resolution
|
||||
#
|
||||
Cvertoo = \
|
||||
sed s/WM_PROJECT_VERSION/\"$(shell \
|
||||
git describe --always --tags 2>/dev/null || \
|
||||
echo $(WM_PROJECT_VERSION) \
|
||||
)\"/ $$SOURCE > $*.C; \
|
||||
$(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
|
||||
.Cver.dep:
|
||||
$(MAKE_DEP)
|
||||
|
||||
Reference in New Issue
Block a user