specs: convert XI2proto.txt to html using asciidoc
authorGaetan Nadon <memsize@videotron.ca>
Tue, 15 Mar 2011 19:43:48 +0000 (15:43 -0400)
committerGaetan Nadon <memsize@videotron.ca>
Wed, 16 Mar 2011 17:02:32 +0000 (13:02 -0400)
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Makefile.am
configure.ac
specs/.gitignore [new file with mode: 0644]
specs/Makefile.am [new file with mode: 0644]
specs/XI2proto.txt [moved from XI2proto.txt with 100% similarity]
specs/XIproto.txt [moved from XIproto.txt with 100% similarity]

index 77d1ea7..3312f2f 100644 (file)
@@ -1,3 +1,6 @@
+
+SUBDIRS = specs
+
 inputdir = $(includedir)/X11/extensions
 input_HEADERS = \
        XI.h \
@@ -8,9 +11,6 @@ input_HEADERS = \
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = inputproto.pc
 
-dist_doc_DATA = XI2proto.txt XIproto.txt
-
-
 MAINTAINERCLEANFILES = ChangeLog INSTALL
 
 .PHONY: ChangeLog INSTALL
index 39e4df9..bd5f046 100644 (file)
@@ -3,11 +3,14 @@ AC_INIT([InputProto], [2.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?produ
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
 AM_MAINTAINER_MODE
 
-# Require xorg-macros: XORG_DEFAULT_OPTIONS
+# Require xorg-macros: XORG_WITH_ASCIIDOC
 m4_ifndef([XORG_MACROS_VERSION],
-          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
-XORG_MACROS_VERSION(1.3)
+          [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.10)
 XORG_DEFAULT_OPTIONS
+XORG_ENABLE_SPECS
+XORG_WITH_ASCIIDOC(8.4.5)
 
 AC_OUTPUT([Makefile
+           specs/Makefile
            inputproto.pc])
diff --git a/specs/.gitignore b/specs/.gitignore
new file mode 100644 (file)
index 0000000..2d19fc7
--- /dev/null
@@ -0,0 +1 @@
+*.html
diff --git a/specs/Makefile.am b/specs/Makefile.am
new file mode 100644 (file)
index 0000000..ad51453
--- /dev/null
@@ -0,0 +1,16 @@
+
+if ENABLE_SPECS
+if HAVE_ASCIIDOC
+
+doc_DATA = XI2proto.html
+dist_doc_DATA = XI2proto.txt
+
+%.html: %.txt
+       $(AM_V_GEN)$(ASCIIDOC) -o $@ $<
+
+CLEANFILES = $(doc_DATA)
+
+EXTRA_DIST = XIproto.txt
+
+endif
+endif
similarity index 100%
rename from XI2proto.txt
rename to specs/XI2proto.txt
similarity index 100%
rename from XIproto.txt
rename to specs/XIproto.txt