summaryrefslogtreecommitdiffstats
path: root/tools/gendoc/doc/mof/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gendoc/doc/mof/Makefile')
-rw-r--r--tools/gendoc/doc/mof/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/gendoc/doc/mof/Makefile b/tools/gendoc/doc/mof/Makefile
new file mode 100644
index 0000000..9882f7d
--- /dev/null
+++ b/tools/gendoc/doc/mof/Makefile
@@ -0,0 +1,29 @@
+all: index.rst
+
+MOFS=../clones/openlmi-providers/mof/05_LMI_Qualifiers.mof \
+ ../clones/openlmi-providers/mof/30_LMI_Jobs.mof \
+ ../clones/openlmi-providers/mof/60_LMI_Account.mof \
+ ../clones/openlmi-providers/mof/60_LMI_Fan.mof \
+ ../clones/openlmi-providers/mof/60_LMI_Hardware.mof \
+ ../clones/openlmi-providers/mof/60_LMI_LogicalFile.mof \
+ ../clones/openlmi-providers/mof/60_LMI_PCP.mof \
+ ../clones/openlmi-providers/mof/60_LMI_PowerManagement.mof \
+ ../clones/openlmi-providers/mof/60_LMI_Realmd.mof \
+ ../clones/openlmi-providers/mof/60_LMI_Service.mof \
+ ../clones/openlmi-providers/mof/60_LMI_Software.mof \
+ ../clones/openlmi-networking/mof/60_LMI_Networking.mof \
+ ../clones/openlmi-storage/mof/LMI_Storage-Base.mof \
+ ../clones/openlmi-storage/mof/LMI_Storage-BlockStorage.mof \
+ ../clones/openlmi-storage/mof/LMI_Storage-Filesystem.mof \
+ ../clones/openlmi-storage/mof/LMI_Storage-Jobs.mof \
+ ../clones/openlmi-storage/mof/LMI_Storage-Luks.mof \
+ ../clones/openlmi-storage/mof/LMI_Storage-Mounting.mof \
+ ../clones/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/://'`