diff options
author | Gunnar Wrobel <p@rdus.de> | 2007-09-11 09:53:28 +0000 |
---|---|---|
committer | Gunnar Wrobel <p@rdus.de> | 2007-09-11 09:53:28 +0000 |
commit | 23ca74c79892f40e7330b30d01715fdd5408831c (patch) | |
tree | 70b64c6b620e49a87f4e0cc4ce4082c0ca42dd4f /doc/Makefile | |
parent | 53ec348a897d392ae7123efa77d7d5cc3455e19e (diff) | |
parent | 6bdbcac18c2b91e0304c65d06278da471e16c92b (diff) | |
download | layman-23ca74c79892f40e7330b30d01715fdd5408831c.tar.gz layman-23ca74c79892f40e7330b30d01715fdd5408831c.tar.bz2 layman-23ca74c79892f40e7330b30d01715fdd5408831c.zip |
Moved layman to trunk again.
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..64b28af --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,41 @@ +# +# layman/doc/Makefile +# Simple Makefile to rebuild the documentation from the +# docbook XML sources +# +# Copyright (c) 1999-2005 Gentoo Foundation +# Released under v2 of the GNU GPL +# +# Author(s) Stuart Herbert <stuart@gentoo.org> +# Renat Lumpau <rl03@gentoo.org> +# Gunnar Wrobel <php@gunnarwrobel.de> +# +# ======================================================================== + +MAN_PAGES = layman.8 +HTML_PAGES = layman.8.html + +TMPFILE=./layman.man + +all: man html + +html: $(HTML_PAGES) + +man: $(MAN_PAGES) + +clean: + rm -f $(MAN_PAGES) + rm -f $(HTML_PAGES) + +%.html: %.xml + @echo HTML $@ + @xmlto html-nochunks $< + +%: %.xml + @echo MAN $@ + @xmlto man $< +# +# fix up the blank lines that docbook leaves behind +# + @cat $@ | sed -e 's/$$/.fred/g;' | tr -d '\n' | sed -e 's/.fred.fred\./.fred./g;' | sed -e 's/.fred/\n/g;' > $(TMPFILE) + @mv $(TMPFILE) $@ |