tweaked build version strings

- added wmakePrintBuild -check, -update, -version options
- only update .build cache when explictly requested and
  from within the wmake Cver rules
- use -check option to avoid unnecessary remake in src/Allwmake
This commit is contained in:
Mark Olesen
2008-12-19 12:13:08 +01:00
parent 6a4b83bc43
commit 5f7d2acb9c
3 changed files with 79 additions and 27 deletions

View File

@ -1,10 +1,10 @@
.SUFFIXES: .Cver
#
# update version string
# update version string in C++ file and in $WM_PROJECT_DIR/.build file
#
Cvertoo = \
sed s/WM_PROJECT_VERSION/\"$(shell wmakePrintBuild)\"/ $$SOURCE > $*.C; \
sed s/WM_PROJECT_VERSION/\"$(shell wmakePrintBuild -update)\"/ $$SOURCE > $*.C; \
$(CC) $(c++FLAGS) -c $*.C -o $@
.Cver.dep: