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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2