(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 konrad.r 1.9 	$(MAKE) --directory=Pegasus REPOSITORY_DIR=$(LOCAL_STATE_PREFIX) repository
35 karl     1.1 
36              # The following is a hangover from previous testing and simply loads the
37              # core into the namespace defined by NAMESPACE.  It should probably be 
38              # deleted since there is no use for it any more.
39              short:
40              	@ echo +++++ Populating CIM repository - this will take a minute
41              	$(RMREPOSITORY) $(REPOSITORY_ROOT)
42              	echo +++++ Loading CIM_Core.mof into root namespace...
43 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
44 karl     1.1 
45              clean:
46              	@ echo +++++ Removing existing CIM Repository named $(REPOSITORY_ROOT)
47              	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
48              
49              
50              depend:
51              
52              sub:
53              
54              misc:
55              
56              tests:
57              
58              poststarttests:
59              
60              general:
61              
62 karl     1.3 # used to generate xml output from the schema
63 kumpf    1.6 
64 karl     1.1 xml:
65 kumpf    1.6 	@ $(RMREPOSITORY) $(TMP_DIR)/repository
66              	@ echo +++++ Temporarily loading CIM_Core$(CIM_SCHEMA_VER) into xml/cimv2 namespace ...
67 konrad.r 1.8 	@ $(CIMMOFCLI) -R$(TMP_DIR) -I$(CIM_SCHEMA_DIR) -nxml/cimv2 $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
68 kumpf    1.6 	@ echo +++++ Creating XML for CIM Schema$(CIM_SCHEMA_VER).mof in file $(TMP_DIR)/CIM_Schema$(CIM_SCHEMA_VER).xml
69 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
70 kumpf    1.6 	@ $(RMREPOSITORY) $(TMP_DIR)/repository

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2