HP-[DME] Bugzilla 840 - Allow placement of mu executable to be controlled by environm...
[tpot/pegasus/.git] / Makefile
1 # Pegasus top level make file
2 # options are
3 # Make rebuild
4 # Make world
5 # Make tests - Executes the complete test suite
6 # Make repository - Rebuilds the Pegasus repository
7 #
8 ROOT = .
9
10 include $(ROOT)/mak/config.mak
11
12 # This is a recurse make file
13 # Defines subdirectorys to go to recursively
14
15 # DIRS = src cgi
16 DIRS = src test
17
18 # Define the inclusion of the recurse.mak file to execute the next
19 # level of makefiles defined by the DIRS variable
20
21 include $(ROOT)/mak/recurse.mak
22
23 # rebuild target cleans, setup dependencies, compiles all and builds 
24 # repository
25
26 FORCE:
27
28 rebuild: clean depend all repository
29         @ $(MAKE) -s tests
30
31 world: depend all repository
32         @ $(MAKE) -s tests
33
34 # The repository Target removes and rebuilds the CIM repository
35
36 repository: FORCE
37         @ $(MAKE) -SC Schemas/Pegasus repository
38
39 repositoryServer: FORCE
40         @ $(MAKE) -SC Schemas/Pegasus repositoryServer
41
42 testrepository: FORCE
43         @ $(MAKE) -SC src/Providers/sample/Load repository
44         @ $(MAKE) -SC test/wetest repository
45         @ $(MAKE) -SC src/Clients/benchmarkTest/Load repository
46
47 testrepositoryServer: FORCE
48         @ $(MAKE) -SC src/Providers/sample/Load repositoryServer
49         @ $(MAKE) -SC test/wetest repositoryServer
50         @ $(MAKE) -SC src/Clients/benchmarkTest/Load repositoryServer
51
52 removetestrepository: FORCE
53         @ $(MAKE) -SC src/Providers/sample/Load removerepository
54         @ $(MAKE) -SC test/wetest removerepository
55         @ $(MAKE) -SC src/Clients/benchmarkTest/Load removerepository
56
57 all: messages 
58
59 messages: rootbundle
60
61 rootbundle: 
62         $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile
63
64 # the collections of tests that we run with the server active.
65 # For now, these are centralized and do not include startup
66 # and shutdown of the server.
67
68 activetests: FORCE
69         $(MAKE) --directory=$(PEGASUS_ROOT)/test -f Makefile clean
70         $(PEGASUS_ROOT)/bin/TestClient
71         $(PEGASUS_ROOT)/bin/Client
72         $(MAKE) --directory=$(PEGASUS_ROOT)/test -f Makefile tests