From 5c9badda7978589159e09a0346c0cf30e3556474 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 17 Sep 2010 04:12:32 +0200 Subject: [PATCH] Added build procedure for manpages and HTML documentation. Uses GNU Make extensions for now, which is probably not as it should. On the other hand, much of the source code requires GCC, and SEQ_SOCKPACKET is only available on Linux anyway, so it probably doesn't make a whole lot of difference. --- Makefile.am | 2 +- configure.in | 1 + doc/.gitignore | 4 ++++ doc/Makefile.am | 14 ++++++++++++++ 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 doc/.gitignore create mode 100644 doc/Makefile.am diff --git a/Makefile.am b/Makefile.am index a976a41..775edba 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,3 @@ -SUBDIRS = lib src +SUBDIRS = lib src doc EXTRA_DIST = etc diff --git a/configure.in b/configure.in index 13dae8a..99c3865 100644 --- a/configure.in +++ b/configure.in @@ -59,4 +59,5 @@ Makefile src/Makefile src/dirplex/Makefile lib/Makefile +doc/Makefile ]) diff --git a/doc/.gitignore b/doc/.gitignore new file mode 100644 index 0000000..e1d4184 --- /dev/null +++ b/doc/.gitignore @@ -0,0 +1,4 @@ +/*.7 +/*.1 +/*.html +/*.css diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..66b4a0b --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,14 @@ +dist_man1_MANS = callcgi.1 dirplex.1 htparser.1 patplex.1 sendfile.1 userplex.1 +dist_man7_MANS = ashd.7 + +%.7 %.1: %.doc + a2x -f manpage $< + +%.html: %.doc + a2x -f xhtml $< + +manpages: $(dist_man1_MANS) $(dist_man7_MANS) + +htmldoc: $(patsubst %.doc, %.html, *.doc) + +EXTRA_DIST = *.doc -- 2.11.0