From: Fredrik Tolf Date: Fri, 17 Sep 2010 02:12:32 +0000 (+0200) Subject: Added build procedure for manpages and HTML documentation. X-Git-Tag: 0.1~2 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=5c9badda7978589159e09a0346c0cf30e3556474 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. --- 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