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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2