From e8ba6662501696e596e206ea691d7c7a8dd92849 Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Fri, 11 Oct 2013 10:08:00 +0200 Subject: documentation: make the build process less picky Allow to specify workspace directory, where the local git checkouts are located. Also do not depend on installed openlmi-providers-devel package when all we need is in this repository. --- tools/gendoc/doc/mof/Makefile | 47 +++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 22 deletions(-) (limited to 'tools/gendoc/doc/mof/Makefile') diff --git a/tools/gendoc/doc/mof/Makefile b/tools/gendoc/doc/mof/Makefile index 9882f7d..698c994 100644 --- a/tools/gendoc/doc/mof/Makefile +++ b/tools/gendoc/doc/mof/Makefile @@ -1,29 +1,32 @@ 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 +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/://'` + ../../../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/://'` -- cgit