Skip to content

Commit

Permalink
Detect xml2rfc and xsltproc during configure and generate the documen…
Browse files Browse the repository at this point in the history
…tation as part of make
  • Loading branch information
Trond Norbye authored and Trond Norbye committed Mar 4, 2009
1 parent effae30 commit f181a24
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2,083 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ AC_CHECK_FUNCS(setppriv, [

AM_CONDITIONAL([BUILD_SOLARIS_PRIVS],[test "$build_solaris_privs" = "yes"])

AC_PATH_PROG([XML2RFC], [xml2rfc], "no")
AC_PATH_PROG([XSLTPROC], [xsltproc], "no")
AM_CONDITIONAL([BUILD_SPECIFICATIONS],[test "x$XML2RFC" != "xno" -a "x$XSLTPROC" != "xno"])

dnl Let the compiler be a bit more picky. Please note that you cannot
dnl specify these flags to the compiler before AC_CHECK_FUNCS, because
dnl the test program will generate a compilation warning and hence fail
Expand Down
8 changes: 0 additions & 8 deletions doc/Makefile-xml2rfc

This file was deleted.

17 changes: 17 additions & 0 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
man_MANS = memcached.1

EXTRA_DIST = *.txt

BUILT_SOURCES=

if BUILD_SPECIFICATIONS
BUILT_SOURCES += protocol-binary.txt protocol-binary-range.txt
MOSTLYCLEANFILES = protocol-binary.txt protocol-binary-range.txt
endif

%.txt: %.full
@XML2RFC@ $< $@

%.chk: %.xml xml2rfc/rfc2629-refchk.xsl
@XSLTPROC@ xml2rfc/rfc2629-refchk.xsl $< >$@

%.full: %.xml xml2rfc/rfc2629-noinc.xsl
@XSLTPROC@ xml2rfc/rfc2629-noinc.xsl $< >$@

336 changes: 0 additions & 336 deletions doc/protocol-binary-range.txt

This file was deleted.

Loading

0 comments on commit f181a24

Please sign in to comment.