File size: 469 Bytes
5a600cf
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#----------------------------*- 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 $@

#------------------------------------------------------------------------------