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 .*.swp
doc/man/*.[1-9] doc/man/*.[1-9]
doc/man/.marker

View file

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