Build: check for gencat
[openafs.git] / src / config / NTMakefile.version-NOCML
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 # This makefile creates the AFS_component_version_number.c header file
9 # for binaries. It is invoked from the NTMakefile in the binary's tree. Hence
10 # the paths are correct for those trees.
11
12 !IFNDEF VERSFILE
13 VERSFILE=AFS_component_version_number
14 !ENDIF
15
16 $(VERSFILE).c:
17         echo #include "wchar.h" >$(VERSFILE).c
18         echo unsigned char $(CML_PREFIX)cml_version_number[]="@(#)OpenAFS_$(AFSPRODUCT_VERSION)"; >>$(VERSFILE).c
19         echo unsigned char* AFSVersion = "OpenAFS_$(AFSPRODUCT_VERSION)";  >>$(VERSFILE).c
20         echo wchar_t w$(CML_PREFIX)cml_version_number[]=L"@(#)OpenAFS_$(AFSPRODUCT_VERSION)"; >>$(VERSFILE).c
21         echo wchar_t* wAFSVersion = L"OpenAFS_$(AFSPRODUCT_VERSION)";  >>$(VERSFILE).c
22
23 $(VERSFILE).h:
24         echo #define AFS_VERINFO_BUILD "OpenAFS_$(AFSPRODUCT_VERSION)" >$(VERSFILE).h
25         echo #define AFS_VERINFO_FILEVER $(AFSPRODUCT_FILE_VERSION) >>$(VERSFILE).h
26         echo #define AFSPRODUCT_VERSION "$(AFSPRODUCT_VERSION)" >> $(VERSFILE).h
27         echo #define AFSPRODUCT_VERSION_MAJOR $(AFSPRODUCT_VER_MAJOR) >> $(VERSFILE).h
28         echo #define AFSPRODUCT_VERSION_MINOR $(AFSPRODUCT_VER_MINOR) >> $(VERSFILE).h
29         echo #define AFSPRODUCT_VERSION_PATCH $(AFSPRODUCT_VER_PATCH) >> $(VERSFILE).h
30         echo #define AFSPRODUCT_VERSION_BUILD $(AFSPRODUCT_VER_BUILD) >> $(VERSFILE).h
31         echo #ifdef AFS_VERSION_STRINGS >> $(VERSFILE).h
32         echo extern unsigned char $(CML_PREFIX)cml_version_number[]; >> $(VERSFILE).h
33         echo extern unsigned char* AFSVersion; >> $(VERSFILE).h
34         echo extern wchar_t w$(CML_PREFIX)cml_version_number[]; >> $(VERSFILE).h
35         echo extern wchar_t* wAFSVersion; >> $(VERSFILE).h
36         echo #endif >> $(VERSFILE).h
37
38 $(VERSFILE).txt:
39         echo OpenAFS_$(AFSPRODUCT_VERSION)>$(VERSFILE).txt
40
41 $(VERSFILE).xml:
42         echo <<$(VERSFILE).xml > NUL
43 <?xml version="1.0" encoding="UTF-8"?>
44 <revision>
45 <revnumber>$(AFSPRODUCT_VERSION)</revnumber>
46 <date></date>
47 </revision>
48 <<KEEP