(file) Return to Makefile CVS log (file) (dir) Up to [Pegasus] / pegasus / Schemas

 1 martin 1.13 #//%2005////////////////////////////////////////////////////////////////////////
 2             #//
 3             #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 4             #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
 5             #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
 6             #// IBM Corp.; EMC Corporation, The Open Group.
 7             #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
 8             #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 9             #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10             #// EMC Corporation; VERITAS Software Corporation; The Open Group.
11             #//
12             #// Permission is hereby granted, free of charge, to any person obtaining a copy
13             #// of this software and associated documentation files (the "Software"), to
14             #// deal in the Software without restriction, including without limitation the
15             #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16             #// sell copies of the Software, and to permit persons to whom the Software is
17             #// furnished to do so, subject to the following conditions:
18             #// 
19             #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20             #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21             #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 martin 1.13 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23             #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24             #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25             #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26             #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27             #//
28             #//==============================================================================
29 karl   1.1  # Makefile builds the Pegasus Repository
30             # ATTN: Today this makefile is implementation dependent.
31             #       It assumes that the repository is a set of directories
32             #       that can be removed by removing the directories.
33             #       This must be updated to an implementation independent repository
34             #       remove function.
35             
36             ROOT = $(PEGASUS_ROOT)
37             include $(ROOT)/mak/config.mak
38 konrad.r 1.8  include $(ROOT)/mak/configschema.mak
39 karl     1.1  
40               # Define Namespace in which the CIM Schemas are to be Loaded.
41               # Note that by default, the CORE is also loaded into root.
42 kumpf    1.10 
43 karl     1.1  NAMESPACE=root/cimv2
44               
45               all:
46               
47 konrad.r 1.8  messages:
48               
49 karl     1.1  # Delete and rebuild the repository using the MOF compiler.
50               
51               repository:
52 kumpf    1.10 	@ $(ECHO) +++++ Removing existing repository named $(REPOSITORY_ROOT)
53 karl     1.1  	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
54 kumpf    1.10 	@ $(ECHO) +++++ Populating CIM repository - this will take a while
55               	@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER).mof into root namespace...
56 jim.wunderlich 1.12 	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" -nroot $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
57 kumpf          1.10 	@ $(ECHO) +++++ Loading CIM_Schema$(CIM_SCHEMA_VER).mof into $(NAMESPACE) namespace...
58 jim.wunderlich 1.12 	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof
59 konrad.r       1.8  
60 karl           1.1  # The following is a hangover from previous testing and simply loads the
61                     # core into the namespace defined by NAMESPACE.  It should probably be 
62                     # deleted since there is no use for it any more.
63                     short:
64 kumpf          1.10 	@ $(ECHO) +++++ Populating CIM repository - this will take a minute
65                     	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
66                     	@ $(ECHO) +++++ Loading CIM_Core.mof into root namespace...
67 jim.wunderlich 1.12 	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" "-N$(REPOSITORY_NAME)" "-M$(REPOSITORY_MODE)" "-I$(CIM_SCHEMA_DIR)" "-n$(NAMESPACE)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
68 karl           1.1  
69                     clean:
70 kumpf          1.10 	@ $(ECHO) +++++ Removing existing CIM Repository named $(REPOSITORY_ROOT)
71 karl           1.1  	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
72                     
73                     
74                     depend:
75                     
76                     sub:
77                     
78                     misc:
79                     
80                     tests:
81                     
82                     poststarttests:
83                     
84                     general:
85                     
86 karl           1.3  # used to generate xml output from the schema
87 kumpf          1.6  
88 karl           1.1  xml:
89 kumpf          1.6  	@ $(RMREPOSITORY) $(TMP_DIR)/repository
90 kumpf          1.10 	@ $(ECHO) +++++ Temporarily loading CIM_Core$(CIM_SCHEMA_VER) into xml/cimv2 namespace ...
91                     	$(CIMMOFCLI) "-R$(TMP_DIR)" "-I$(CIM_SCHEMA_DIR)" -nxml/cimv2 $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
92                     	@ $(ECHO) +++++ Creating XML for CIM Schema$(CIM_SCHEMA_VER).mof in file $(TMP_DIR)/CIM_Schema$(CIM_SCHEMA_VER).xml
93                     	$(CIMMOFCLI)  "-R$(TMP_DIR)" --xml "-I$(CIM_SCHEMA_DIR)" -nxml/cimv2 $(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof > $(TMP_DIR)/CIM_Schema$(CIM_SCHEMA_VER).xml
94 kumpf          1.6  	@ $(RMREPOSITORY) $(TMP_DIR)/repository

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2