prepare manpage generation in makefile

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-26 11:46:52 +01:00
parent 96fbffeaa1
commit f8c5c03e77
5 changed files with 20 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.*.swp
doc/man/*.[1-9]
doc/man/.marker

View File

@ -1,15 +1,22 @@
# General
PREFIX=/usr
BINDIR=$(PREFIX}/bin
A2X=a2x -f manpage --no-xmllint
# Developer only
WEBDIR=$$HOME/niconetz
WEBPAGE=software/cdist.mdwn
MANSRC=doc/man/cdist-config-layout.text doc/man/cdist-config.text \
doc/man/cdist-deploy-to.text doc/man/cdist-design.text \
doc/man/cdist-environment.text doc/man/cdist-explorers.text \
doc/man/cdist-language.text doc/man/cdist-manifests.text \
doc/man/cdist-quickstart.text doc/man/cdist-stages.text \
doc/man/cdist-terms.text doc/man/cdist.text \
doc/man/cdist-types.text
MANSRC=doc/man/cdist-config-layout.text \
doc/man/cdist-config.text \
doc/man/cdist-deploy-to.text \
doc/man/cdist-explorer.text \
doc/man/cdist-manifest.text \
doc/man/cdist-quickstart.text \
doc/man/cdist-stages.text \
doc/man/cdist-terms.text \
doc/man/cdist.text \
doc/man/cdist-type.text
# FIXME: some distro nerd, can you make this more beautiful?
@ -33,10 +40,11 @@ web:
pub:
git push --mirror
man:
echo $(MANSRC)
a2x -f manpage --no-xmllint doc/man/cdist-stages.text
echo man ./doc/man/cdist-stages.7
man: doc/man/.marker
doc/man/.marker: $(MANSRC)
for man in $(MANSRC); do $(A2X) $$man; done
touch $@
clean:
rm -f doc/man/*.html doc/man/*.[1-9]