summaryrefslogtreecommitdiffstats
path: root/tools/gendoc/doc/mof/Makefile
blob: 698c9948cb180a80d4a3a3ecb345978e09869f6a (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
all: index.rst

WORKSPACE_PREFIX ?= ../clones

MOFS=$(WORKSPACE_PREFIX)/openlmi-providers/mof/05_LMI_Qualifiers.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/30_LMI_Jobs.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/60_LMI_Account.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/60_LMI_Fan.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/60_LMI_Hardware.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/60_LMI_LogicalFile.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/60_LMI_PCP.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/60_LMI_PowerManagement.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/60_LMI_Realmd.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/60_LMI_Service.mof \
     $(WORKSPACE_PREFIX)/openlmi-providers/mof/60_LMI_Software.mof \
     $(WORKSPACE_PREFIX)/openlmi-networking/mof/60_LMI_Networking.mof \
     $(WORKSPACE_PREFIX)/openlmi-storage/mof/LMI_Storage-Base.mof \
     $(WORKSPACE_PREFIX)/openlmi-storage/mof/LMI_Storage-BlockStorage.mof \
     $(WORKSPACE_PREFIX)/openlmi-storage/mof/LMI_Storage-Filesystem.mof \
     $(WORKSPACE_PREFIX)/openlmi-storage/mof/LMI_Storage-Jobs.mof \
     $(WORKSPACE_PREFIX)/openlmi-storage/mof/LMI_Storage-Luks.mof \
     $(WORKSPACE_PREFIX)/openlmi-storage/mof/LMI_Storage-Mounting.mof \
     $(WORKSPACE_PREFIX)/openlmi-storage/mof/LMI_Storage-Partitions.mof

clean:
	rm -f *.rst

index.rst: $(MOFS)
	../../../openlmi-doc-class2rst -H header.txt \
		-M `echo $(MOFS) | sed 's/ / -M /g'` \
		-S /usr/share/mof/cim-current/CIM_Schema.mof \
		`cat $(MOFS) | grep "^class" | cut -d ' ' -f 2 | sed 's/://'`