forked from ungleich-public/cdist
Better sphinx manpage ext. Add custom dotman Makefile target for custom .cdist directory.
This commit is contained in:
parent
e819dd0470
commit
b89077f9a5
114 changed files with 549 additions and 122 deletions
23
Makefile
23
Makefile
|
|
@ -88,6 +88,29 @@ man-latest-link: web-pub
|
|||
ssh staticweb.ungleich.ch \
|
||||
"cd /home/services/www/nico/nico.schottelius.org/www/software/cdist/man/ && rm -f latest && ln -sf "$(CHANGELOG_VERSION)" latest"
|
||||
|
||||
# Manpages: .cdist Types
|
||||
DOT_CDIST_PATH=${HOME}/.cdist
|
||||
DOTMAN7DSTDIR=$(MAN7DSTDIR)
|
||||
DOTTYPEDIR=$(DOT_CDIST_PATH)/type
|
||||
$(info $(DOTTYPEDIR))
|
||||
DOTMANTYPESRC=$(shell ls $(DOTTYPEDIR)/*/man.rst)
|
||||
$(info $(DOTMANTYPESRC))
|
||||
DOTMANTYPEPREFIX=$(subst $(DOTTYPEDIR)/,$(DOTMAN7DSTDIR)/cdist-type,$(DOTMANTYPESRC))
|
||||
$(info $(DOTMANTYPEPREFIX))
|
||||
DOTMANTYPES=$(subst /man.rst,.rst,$(DOTMANTYPEPREFIX))
|
||||
$(info $(DOTMANTYPES))
|
||||
|
||||
# Link manpage: do not create man.html but correct named file
|
||||
$(DOTMAN7DSTDIR)/cdist-type%.rst: $(DOTTYPEDIR)/%/man.rst
|
||||
ln -sf "$^" $@
|
||||
|
||||
# Manpages #3: generic part
|
||||
dotmansphinxman: $(DOTMANTYPES)
|
||||
$(SPHINXM)
|
||||
|
||||
dotman: dotmansphinxman
|
||||
|
||||
|
||||
################################################################################
|
||||
# Speeches
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue