forked from ungleich-public/cdist
finish (kind of ugly) manpage generation in makefile
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
1c45e4fe17
commit
719419d364
1 changed files with 2 additions and 3 deletions
5
Makefile
5
Makefile
|
@ -46,7 +46,7 @@ all:
|
||||||
|
|
||||||
man: doc/man/.marker
|
man: doc/man/.marker
|
||||||
|
|
||||||
doc/man/.marker:
|
doc/man/.marker: $(MANDIR)/cdist-reference.text
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
# Manual from core
|
# Manual from core
|
||||||
|
@ -61,13 +61,12 @@ mantype:
|
||||||
manmove: mantype mancore
|
manmove: mantype mancore
|
||||||
for manpage in $(MANDIR)/*.[1-9] conf/type/*/*.7; do \
|
for manpage in $(MANDIR)/*.[1-9] conf/type/*/*.7; do \
|
||||||
cat=$${manpage##*.}; \
|
cat=$${manpage##*.}; \
|
||||||
echo $$cat; \
|
|
||||||
mandir=$(MANDIR)/man$$cat; \
|
mandir=$(MANDIR)/man$$cat; \
|
||||||
mkdir -p $$mandir; \
|
mkdir -p $$mandir; \
|
||||||
mv $$manpage $$mandir; \
|
mv $$manpage $$mandir; \
|
||||||
done
|
done
|
||||||
|
|
||||||
# Reference
|
# Reference depends on conf/type/*/man.text - HOWTO with posix make?
|
||||||
$(MANDIR)/cdist-reference.text: manmove $(MANDIR)/cdist-reference.text.sh
|
$(MANDIR)/cdist-reference.text: manmove $(MANDIR)/cdist-reference.text.sh
|
||||||
$(MANDIR)/cdist-reference.text.sh
|
$(MANDIR)/cdist-reference.text.sh
|
||||||
$(A2X) $(MANDIR)/cdist-reference.text
|
$(A2X) $(MANDIR)/cdist-reference.text
|
||||||
|
|
Loading…
Reference in a new issue