Added build procedure for manpages and HTML documentation.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 17 Sep 2010 02:12:32 +0000 (04:12 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 17 Sep 2010 02:12:32 +0000 (04:12 +0200)
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
configure.in
doc/.gitignore [new file with mode: 0644]
doc/Makefile.am [new file with mode: 0644]

index a976a41..775edba 100644 (file)
@@ -1,3 +1,3 @@
-SUBDIRS = lib src
+SUBDIRS = lib src doc
 
 EXTRA_DIST = etc
index 13dae8a..99c3865 100644 (file)
@@ -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 (file)
index 0000000..e1d4184
--- /dev/null
@@ -0,0 +1,4 @@
+/*.7
+/*.1
+/*.html
+/*.css
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644 (file)
index 0000000..66b4a0b
--- /dev/null
@@ -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