summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f238d9de736ef738dec43da679d12455e31faaba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Pegasus top level make file
# options are
# Make rebuild
# Make world
# Make tests - Executes the complete test suite
# Make repository - Rebuilds the Pegasus repository
#
ROOT = .

include $(ROOT)/mak/config.mak

# This is a recurse make file
# Defines subdirectorys to go to recursively

# DIRS = src cgi
DIRS = src test

# Define the inclusion of the recurse.mak file to execute the next
# level of makefiles defined by the DIRS variable

include $(ROOT)/mak/recurse.mak

# rebuild target cleans, setup dependencies, compiles all and builds 
# repository

FORCE:

rebuild: clean depend all repository
	@ $(MAKE) -s tests

world: depend all repository
	@ $(MAKE) -s tests

# The repository Target removes and rebuilds the CIM repository

repository: FORCE
	@ $(MAKE) -SC Schemas/Pegasus repository

repositoryServer: FORCE
	@ $(MAKE) -SC Schemas/Pegasus repositoryServer

testrepository: FORCE
	@ $(MAKE) -SC src/Providers/sample/Load repository
	@ $(MAKE) -SC test/wetest repository
	@ $(MAKE) -SC src/Clients/benchmarkTest/Load repository

testrepositoryServer: FORCE
	@ $(MAKE) -SC src/Providers/sample/Load repositoryServer
	@ $(MAKE) -SC test/wetest repositoryServer
	@ $(MAKE) -SC src/Clients/benchmarkTest/Load repositoryServer

removetestrepository: FORCE
	@ $(MAKE) -SC src/Providers/sample/Load removerepository
	@ $(MAKE) -SC test/wetest removerepository
	@ $(MAKE) -SC src/Clients/benchmarkTest/Load removerepository

all: messages 

messages: rootbundle

rootbundle: 
	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile

# the collections of tests that we run with the server active.
# For now, these are centralized and do not include startup
# and shutdown of the server.

activetests: FORCE
	$(MAKE) --directory=$(PEGASUS_ROOT)/test -f Makefile clean
	$(PEGASUS_ROOT)/bin/TestClient
	$(PEGASUS_ROOT)/bin/Client
	$(MAKE) --directory=$(PEGASUS_ROOT)/test -f Makefile tests