diff options
author | Michal Minar <miminar@redhat.com> | 2013-10-11 10:08:00 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-10-15 15:31:26 +0200 |
commit | e8ba6662501696e596e206ea691d7c7a8dd92849 (patch) | |
tree | 32ea72d9e16310db24d69802dfe316392e8dce21 /tools/gendoc | |
parent | e6a098f3a6f6666a534139e9686dd082094d664a (diff) | |
download | openlmi-providers-e8ba6662501696e596e206ea691d7c7a8dd92849.tar.gz openlmi-providers-e8ba6662501696e596e206ea691d7c7a8dd92849.tar.xz openlmi-providers-e8ba6662501696e596e206ea691d7c7a8dd92849.zip |
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.
Diffstat (limited to 'tools/gendoc')
-rw-r--r-- | tools/gendoc/doc/conf.py | 2 | ||||
-rw-r--r-- | tools/gendoc/doc/mof/Makefile | 47 |
2 files changed, 26 insertions, 23 deletions
diff --git a/tools/gendoc/doc/conf.py b/tools/gendoc/doc/conf.py index ee12eff..331d8a6 100644 --- a/tools/gendoc/doc/conf.py +++ b/tools/gendoc/doc/conf.py @@ -105,7 +105,7 @@ html_theme = 'openlmitheme' #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. -#html_theme_path = [] +html_theme_path = ['../..'] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". 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/://'` |