Added support for generating rdoc documentation of modules (make rdoc).
This commit is contained in:
parent
056e59a63d
commit
5ab80db942
1 changed files with 13 additions and 1 deletions
12
Makefile
12
Makefile
|
@ -19,3 +19,15 @@ check:
|
||||||
[ $$? -eq 0 ] && echo "$${name}: trailing white spaces on" \
|
[ $$? -eq 0 ] && echo "$${name}: trailing white spaces on" \
|
||||||
"line $${errors}" 1>&2 ; \
|
"line $${errors}" 1>&2 ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
rdoc:
|
||||||
|
mkdir .$$$$ && \
|
||||||
|
rm -rf rdoc ; \
|
||||||
|
find . -name \*.pp | egrep -v "^doc\.pp" | sed -e 's/^\(.*\)/import "\1"/' > doc.pp ; \
|
||||||
|
puppetdoc --mode rdoc --outputdir rdoc --modulepath . --manifestdir .$$$$ ; \
|
||||||
|
rmdir .$$$$
|
||||||
|
|
||||||
|
.PHONY: rdoc
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf puppet-modules.tar.gz rdoc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue