introvoyz042's picture
Migrated from GitHub
5a600cf verified
Raw History Blame Contribute Delete
469 Bytes
#----------------------------*- makefile-gmake -*------------------------------
SUFFIXES += .Cver
# Update version strings in C++ file and in $WM_PROJECT_DIR/.build file
Cvertoo = \
sed -e 's!VERSION_STRING!$(shell wmakePrintBuild -major)!' \
-e 's!BUILD_STRING!$(shell wmakePrintBuild -update)!' \
$< > $(@D)/$(<F).C; \
$(CC) $(c++FLAGS) -c $(@D)/$(<F).C -o $@
#------------------------------------------------------------------------------