mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- version is WM_PROJECT_VERSION prefix + SHA1 from current git head - move double quotes from make rules to global.Cver for extra safety
12 lines
250 B
Plaintext
12 lines
250 B
Plaintext
.SUFFIXES: .Cver
|
|
|
|
#
|
|
# update version string in C++ file and in $WM_PROJECT_DIR/.build file
|
|
#
|
|
Cvertoo = \
|
|
sed 's/WM_PROJECT_VERSION/$(shell wmakePrintBuild -update)/' $$SOURCE > $*.C; \
|
|
$(CC) $(c++FLAGS) -c $*.C -o $@
|
|
|
|
.Cver.dep:
|
|
$(MAKE_DEP)
|