Added doc/protocol to automake.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 6 Jul 2007 16:25:53 +0000 (18:25 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 6 Jul 2007 16:32:05 +0000 (18:32 +0200)
configure.in
doc/Makefile.am
doc/protocol/Makefile.am [new file with mode: 0644]

index 73d2f91..c2fbcc8 100644 (file)
@@ -268,6 +268,7 @@ include/Makefile
 include/doldaconnect/Makefile
 doc/Makefile
 doc/man/Makefile
+doc/protocol/Makefile
 po/Makefile.in
 config/Makefile
 contrib/Makefile
index 652b077..7fabf7d 100644 (file)
@@ -1,3 +1,3 @@
-SUBDIRS=man
+SUBDIRS=man protocol
 
 EXTRA_DIST =   INSTALL protorev INSTALL.gaim INSTALL.applet
diff --git a/doc/protocol/Makefile.am b/doc/protocol/Makefile.am
new file mode 100644 (file)
index 0000000..40f8599
--- /dev/null
@@ -0,0 +1,19 @@
+EXTRA_DIST = cmd protocol.tex
+
+.dvi.ps:
+       dvips -o $@ $<
+
+protocol.dvi: protocol.tex commands.tex protocol.1st
+       latex protocol
+
+protocol.1st: protocol.tex commands.tex
+       latex protocol
+       touch protocol.1st
+
+commands.tex: cmds/*.tex
+       rm -f commands.tex \
+       for f in cmds/*.tex; do \
+               echo "\\begin{reqspec}{${f%.tex}}" >>commands.tex; \
+               cat "$f" >>commands.tex; \
+               echo "\\end{reqspec}" >>commands.tex; \
+       done