forked from ungleich-public/cdist
fix mantype dependency
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
794e9e75e0
commit
ddaece5b57
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -52,12 +52,12 @@ MAN7DSTDIR=$(MANDIR)/man7
|
||||||
MANTYPESRC=$(shell ls $(TYPEDIR)/*/man.text)
|
MANTYPESRC=$(shell ls $(TYPEDIR)/*/man.text)
|
||||||
|
|
||||||
# replace first path component
|
# replace first path component
|
||||||
MANTYPEPREFIX=$(subst $(TYPEDIR),$(MAN7DSTDIR)/cdist-type,$(MANTYPESRC))
|
MANTYPEPREFIX=$(subst $(TYPEDIR)/,$(MAN7DSTDIR)/cdist-type,$(MANTYPESRC))
|
||||||
|
|
||||||
# replace man.text with .7 or .html
|
# replace man.text with .7 or .html
|
||||||
MANTYPEMAN=$(subst /man.text,.7,$(MANTYPEPREFIX))
|
MANTYPEMAN=$(subst /man.text,.7,$(MANTYPEPREFIX))
|
||||||
MANTYPEHTML=$(subst /man.text,.html,$(MANTYPEPREFIX))
|
MANTYPEHTML=$(subst /man.text,.html,$(MANTYPEPREFIX))
|
||||||
MANTYPEALL=$(TYPEMANPAGES) $(TYPEMANHTML)
|
MANTYPEALL=$(MANTYPEMAN) $(MANTYPEHTML)
|
||||||
|
|
||||||
# Link manpage so A2XH does not create man.html but correct named file
|
# Link manpage so A2XH does not create man.html but correct named file
|
||||||
$(MAN7DSTDIR)/cdist-type%.text: $(TYPEDIR)/%/man.text
|
$(MAN7DSTDIR)/cdist-type%.text: $(TYPEDIR)/%/man.text
|
||||||
|
|
Loading…
Reference in a new issue