(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           # The following two variables determine which CIM Schema is compiled
12           # from the CIMSchemas Directory.
13           # To Change the CIM Schema used, change the following two environment
14           # variables.
15           
16           SCHEMA_VER=25
17           SCHEMA_DIR=CIM$(SCHEMA_VER)
18           
19           #Special because Karl goofed and put the prelim on after the version number.
20           #SCHEMA_VER=26
21           #SCHEMA_DIR=CIM26Prelim
22 karl  1.1 
23           # Define Namespace in which the CIM Schemas are to be Loaded.
24           # Note that by default, the CORE is also loaded into root.
25           NAMESPACE=root/cimv2
26           
27           MOF_PATH = $(ROOT)/Schemas/$(SCHEMA_DIR)
28           
29           all:
30           
31           # Delete and rebuild the repository using the MOF compiler.
32           
33           repository:
34           	@ echo +++++ Removing existing repository named $(REPOSITORY_ROOT)
35           	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
36           	@ echo +++++ Populating CIM repository - this will take a while
37           	@ echo +++++ Loading CIM_Core$(SCHEMA_VER).mof into root namespace...
38           	@ cimmof -I$(MOF_PATH) -nroot $(MOF_PATH)/CIM_Core$(SCHEMA_VER).mof
39           	@ echo +++++ Loading CIM_Schema$(SCHEMA_VER).mof into $(NAMESPACE) namespace...
40           	@ cimmof -I$(MOF_PATH) -n$(NAMESPACE) $(MOF_PATH)/CIM_Schema$(SCHEMA_VER).mof
41           
42           # The following is a hangover from previous testing and simply loads the
43 karl  1.1 # core into the namespace defined by NAMESPACE.  It should probably be 
44           # deleted since there is no use for it any more.
45           short:
46           	@ echo +++++ Populating CIM repository - this will take a minute
47           	$(RMREPOSITORY) $(REPOSITORY_ROOT)
48           	echo +++++ Loading CIM_Core.mof into root namespace...
49           	cimmof -I$(MOF_PATH) -n$(NAMESPACE) $(MOF_PATH)/CIM_Core$(SCHEMA_VER).mof
50           
51           clean:
52           	@ echo +++++ Removing existing CIM Repository named $(REPOSITORY_ROOT)
53           	@ $(RMREPOSITORY) $(REPOSITORY_ROOT)
54           
55           
56           depend:
57           
58           sub:
59           
60           misc:
61           
62           tests:
63           
64 karl  1.1 poststarttests:
65           
66           general:
67           
68           xml:
69           	@ echo +++++ Loading CIM_Schema25.mof into root/cimv2 namespace...
70           	@ cimmof --xml -I$(MOF_PATH) -nroot/cimv2 $(MOF_PATH)/CIM_Schema25.mof

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2