(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           
11           # Define Namespace in which the CIM Schemas are to be Loaded.
12           # Note that by default, the CORE is also loaded into root.
13           NAMESPACE=root/cimv2
14           
15           all:
16           
17           # Delete and rebuild the repository using the MOF compiler.
18           
19           repository:
20           	@ echo +++++ Removing existing repository named $(REPOSITORY_ROOT)
21           	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
22 karl  1.1 	@ echo +++++ Populating CIM repository - this will take a while
23 kumpf 1.6 	@ echo +++++ Loading CIM_Core$(CIM_SCHEMA_VER).mof into root namespace...
24 gerarda 1.7 	@ cimmofl -R$(REPOSITORY_DIR) -I$(CIM_SCHEMA_DIR) -nroot $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
25 kumpf   1.6 	@ echo +++++ Loading CIM_Schema$(CIM_SCHEMA_VER).mof into $(NAMESPACE) namespace...
26 gerarda 1.7 	@ cimmofl -R$(REPOSITORY_DIR) -I$(CIM_SCHEMA_DIR) -n$(NAMESPACE) $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof
27 karl    1.1 
28             # The following is a hangover from previous testing and simply loads the
29             # core into the namespace defined by NAMESPACE.  It should probably be 
30             # deleted since there is no use for it any more.
31             short:
32             	@ echo +++++ Populating CIM repository - this will take a minute
33             	$(RMREPOSITORY) $(REPOSITORY_ROOT)
34             	echo +++++ Loading CIM_Core.mof into root namespace...
35 gerarda 1.7 	cimmofl -R$(REPOSITORY_DIR) -I$(CIM_SCHEMA_DIR) -n$(NAMESPACE) $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
36 karl    1.1 
37             clean:
38             	@ echo +++++ Removing existing CIM Repository named $(REPOSITORY_ROOT)
39             	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
40             
41             
42             depend:
43             
44             sub:
45             
46             misc:
47             
48             tests:
49             
50             poststarttests:
51             
52             general:
53             
54 karl    1.3 # used to generate xml output from the schema
55 kumpf   1.6 
56 karl    1.1 xml:
57 kumpf   1.6 	@ $(RMREPOSITORY) $(TMP_DIR)/repository
58             	@ echo +++++ Temporarily loading CIM_Core$(CIM_SCHEMA_VER) into xml/cimv2 namespace ...
59             	@ cimmofl -R$(TMP_DIR) -I$(CIM_SCHEMA_DIR) -nxml/cimv2 $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
60             	@ echo +++++ Creating XML for CIM Schema$(CIM_SCHEMA_VER).mof in file $(TMP_DIR)/CIM_Schema$(CIM_SCHEMA_VER).xml
61             	@ cimmofl  -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
62             	@ $(RMREPOSITORY) $(TMP_DIR)/repository

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2