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

 1 karl  1.1 # Makefile builds the Pegasus Repository
 2           # ATTN: Today this makefile is implementation dependent.
 3           #       It assumes that the repository is a set of directories
 4           #       that can be removed by removing the directories.
 5           #       This must be updated to an implementation independent repository
 6           #       remove function.
 7           
 8           ROOT = $(PEGASUS_ROOT)
 9           include $(ROOT)/mak/config.mak
10 konrad.r 1.8 include $(ROOT)/mak/configschema.mak
11 karl     1.1 
12              # Define Namespace in which the CIM Schemas are to be Loaded.
13              # Note that by default, the CORE is also loaded into root.
14 kumpf    1.10 
15 karl     1.1  NAMESPACE=root/cimv2
16               
17               all:
18               
19 konrad.r 1.8  messages:
20               
21 karl     1.1  # Delete and rebuild the repository using the MOF compiler.
22               
23               repository:
24 kumpf    1.10 	@ $(ECHO) +++++ Removing existing repository named $(REPOSITORY_ROOT)
25 karl     1.1  	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
26 kumpf    1.10 	@ $(ECHO) +++++ Populating CIM repository - this will take a while
27               	@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER).mof into root namespace...
28 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
29 kumpf          1.10 	@ $(ECHO) +++++ Loading CIM_Schema$(CIM_SCHEMA_VER).mof into $(NAMESPACE) namespace...
30 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
31 konrad.r       1.8  
32 karl           1.1  # The following is a hangover from previous testing and simply loads the
33                     # core into the namespace defined by NAMESPACE.  It should probably be 
34                     # deleted since there is no use for it any more.
35                     short:
36 kumpf          1.10 	@ $(ECHO) +++++ Populating CIM repository - this will take a minute
37                     	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
38                     	@ $(ECHO) +++++ Loading CIM_Core.mof into root namespace...
39 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
40 karl           1.1  
41                     clean:
42 kumpf          1.10 	@ $(ECHO) +++++ Removing existing CIM Repository named $(REPOSITORY_ROOT)
43 karl           1.1  	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
44                     
45                     
46                     depend:
47                     
48                     sub:
49                     
50                     misc:
51                     
52                     tests:
53                     
54                     poststarttests:
55                     
56                     general:
57                     
58 karl           1.3  # used to generate xml output from the schema
59 kumpf          1.6  
60 karl           1.1  xml:
61 kumpf          1.6  	@ $(RMREPOSITORY) $(TMP_DIR)/repository
62 kumpf          1.10 	@ $(ECHO) +++++ Temporarily loading CIM_Core$(CIM_SCHEMA_VER) into xml/cimv2 namespace ...
63                     	$(CIMMOFCLI) "-R$(TMP_DIR)" "-I$(CIM_SCHEMA_DIR)" -nxml/cimv2 $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
64                     	@ $(ECHO) +++++ Creating XML for CIM Schema$(CIM_SCHEMA_VER).mof in file $(TMP_DIR)/CIM_Schema$(CIM_SCHEMA_VER).xml
65                     	$(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
66 kumpf          1.6  	@ $(RMREPOSITORY) $(TMP_DIR)/repository

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2