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