Fixed depencies from rdoc generation and added skip for rdoc directory when generating tar package.
This commit is contained in:
parent
5ab80db942
commit
4be058f5f2
1 changed files with 5 additions and 8 deletions
13
Makefile
13
Makefile
|
@ -1,11 +1,12 @@
|
||||||
|
|
||||||
MODULES = $(shell find . -maxdepth 1 -mindepth 1 -type d)
|
MODULES = $(shell find */manifests/init.pp | sed -e 's/^\([^\/]*\).*/\1/')
|
||||||
|
MANIFESTS = $(shell find . -name \*.pp)
|
||||||
|
|
||||||
all: puppet-modules.tar.gz
|
all: puppet-modules.tar.gz
|
||||||
|
|
||||||
puppet-modules.tar.gz: $(MODULES)
|
puppet-modules.tar.gz: $(MODULES)
|
||||||
umask 022 ; tar zcvf $@ --owner=root --group=root \
|
umask 022 ; tar zcvf $@ --owner=root --group=root \
|
||||||
--mode g-w,o=g --exclude=.git $^
|
--mode g-w,o=g --exclude=.git --exclude=rdoc $^
|
||||||
|
|
||||||
check:
|
check:
|
||||||
@which puppet > /dev/null 2>&1 || ( \
|
@which puppet > /dev/null 2>&1 || ( \
|
||||||
|
@ -20,14 +21,10 @@ check:
|
||||||
"line $${errors}" 1>&2 ; \
|
"line $${errors}" 1>&2 ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
rdoc:
|
rdoc: $(MANIFESTS)
|
||||||
mkdir .$$$$ && \
|
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 .$$$$ ; \
|
puppetdoc --mode rdoc --outputdir rdoc --modulepath . --manifestdir .$$$$ ; \
|
||||||
rmdir .$$$$
|
rmdir .$$$$
|
||||||
|
|
||||||
.PHONY: rdoc
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf puppet-modules.tar.gz rdoc
|
rm -rf puppet-modules.tar.gz rdoc
|
||||||
|
|
Loading…
Add table
Reference in a new issue