Changeset 2167


Ignore:
Timestamp:
Dec 22, 2012, 10:56:10 PM (7 years ago)
Author:
jylam
Message:
  • Doxygen doc / manpages
Location:
trunk
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r2117 r2167  
    33
    44# Put "people" at the end because they're more likely to break builds.
    5 SUBDIRS = build src tutorial test tools games people
     5SUBDIRS = build src tutorial test tools games people doc
    66DIST_SUBDIRS = $(SUBDIRS) binaries
    77
  • trunk/configure.ac

    r2163 r2167  
    7070AC_ARG_ENABLE(experimental,
    7171  [  --enable-experimental   experimental build (default no)])
     72AC_ARG_ENABLE(doc,
     73  [  --enable-doc            build documentation (needs doxygen and LaTeX)])
    7274
    7375AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
     
    9698  AC_DEFINE(LOL_EXPERIMENTAL, 1, Define to 1 to activate experimental build)
    9799fi
     100
     101# Build documentation?
     102DOXYGEN="no"
     103LATEX="no"
     104if test "${enable_doc}" != "no"; then
     105  AC_PATH_PROG(DOXYGEN, doxygen, no)
     106  if test "${DOXYGEN}" != "no"; then
     107    # Build LaTeX documentation?
     108    AC_PATH_PROG(LATEX, pdflatex, no)
     109    AC_PATH_PROG(KPSEWHICH, kpsewhich, no)
     110    AC_PATH_PROG(DVIPS, dvips, no)
     111    if test "${DVIPS}" = "no" -o "${KPSEWHICH}" = "no"; then
     112      LATEX="no"
     113    fi
     114    if test "${LATEX}" != "no"; then
     115      AC_MSG_CHECKING(for a4.sty and a4wide.sty)
     116      if "${KPSEWHICH}" a4.sty >/dev/null 2>&1; then
     117        if "${KPSEWHICH}" a4wide.sty >/dev/null 2>&1; then
     118          AC_MSG_RESULT(yes)
     119        else
     120          LATEX="no"
     121          AC_MSG_RESULT(no)
     122        fi
     123      else
     124        LATEX="no"
     125        AC_MSG_RESULT(no)
     126      fi
     127    fi
     128  fi
     129fi
     130AM_CONDITIONAL(BUILD_DOCUMENTATION, test "${DOXYGEN}" != "no")
     131AM_CONDITIONAL(USE_LATEX, test "${LATEX}" != "no")
    98132
    99133dnl No exceptions
     
    396430  tools/vimlol/Makefile
    397431  tools/vslol/Makefile
     432  doc/Makefile
     433  doc/doxygen.cfg
    398434])
    399435AC_CONFIG_FILES(
Note: See TracChangeset for help on using the changeset viewer.