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
14
Makefile
14
Makefile
|
@ -18,4 +18,16 @@ check:
|
|||
errors="`egrep --line-number '[[:space:]]$$' $${name}`" ; \
|
||||
[ $$? -eq 0 ] && echo "$${name}: trailing white spaces on" \
|
||||
"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
Reference in a new issue