Changeset 4218 for neercs


Ignore:
Timestamp:
Jan 3, 2010, 3:32:57 AM (10 years ago)
Author:
Sam Hocevar
Message:

Add Doxygen build rules.

Location:
neercs/trunk
Files:
5 added
6 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/.gitignore

    r2440 r4218  
     1# Autotools cruft
    12*.o
    23*.lo
     
    1819stamp-*
    1920*-stamp
     21# Binaries
    2022src/neercs
     23# Documentation
     24doc/doxygen.cfg
     25doc/html/
     26doc/latex/
     27
  • neercs/trunk/Makefile.am

    r2490 r4218  
    11
    2 SUBDIRS = src
    3 DIST_SUBDIRS = $(SUBDIRS) data doc
     2SUBDIRS = src doc
     3DIST_SUBDIRS = $(SUBDIRS) data
    44
    55EXTRA_DIST = bootstrap
    66AUTOMAKE_OPTIONS = foreign dist-bzip2
    77
     8webhost = poulet.zoy.org
     9webdir = /srv/caca.zoy.org/var/www/
     10doxdir = /srv/caca.zoy.org/var/cache/doxygen/neercs
     11
     12upload: upload-source upload-doc
     13
     14upload-source: FORCE
     15        scp $(distdir).tar.gz $(webhost):$(webdir)/files/
     16
     17upload-doc: doc/html FORCE
     18        ssh $(webhost) rm -f '$(doxdir)/*' || true
     19        scp -r doc/html/* $(webhost):$(doxdir)/
     20
     21FORCE:
  • neercs/trunk/configure.ac

    r4165 r4218  
    144144fi
    145145
    146 
    147146# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
    148147CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
    149148
    150 AC_OUTPUT([
     149# Build documentation?
     150DOXYGEN="no"
     151LATEX="no"
     152if test "${enable_doc}" != "no"; then
     153  AC_PATH_PROG(DOXYGEN, doxygen, no)
     154  if test "${DOXYGEN}" != "no"; then
     155    # Build LaTeX documentation?
     156    AC_PATH_PROG(LATEX, pdflatex, no)
     157    AC_PATH_PROG(KPSEWHICH, kpsewhich, no)
     158    AC_PATH_PROG(DVIPS, dvips, no)
     159    if test "${DVIPS}" = "no" -o "${KPSEWHICH}" = "no"; then
     160      LATEX="no"
     161    fi
     162    if test "${LATEX}" != "no"; then
     163      AC_MSG_CHECKING(for a4.sty and a4wide.sty)
     164      if "${KPSEWHICH}" a4.sty >/dev/null 2>&1; then
     165        if "${KPSEWHICH}" a4wide.sty >/dev/null 2>&1; then
     166          AC_MSG_RESULT(yes)
     167        else
     168          LATEX="no"
     169          AC_MSG_RESULT(no)
     170        fi
     171      else
     172        LATEX="no"
     173        AC_MSG_RESULT(no)
     174      fi
     175    fi
     176  fi
     177fi
     178AM_CONDITIONAL(BUILD_DOCUMENTATION, test "${DOXYGEN}" != "no")
     179AM_CONDITIONAL(USE_LATEX, test "${LATEX}" != "no")
     180
     181AC_CONFIG_FILES([
    151182  Makefile
    152183  doc/Makefile
     
    154185  data/Makefile
    155186])
     187AC_CONFIG_FILES([
     188  doc/doxygen.cfg
     189])
     190AC_OUTPUT
    156191
  • neercs/trunk/doc/Makefile.am

    r2490 r4218  
    11# $Id: Makefile.am 1986 2008-06-20 19:49:23Z jylam $
    22
    3 EXTRA_DIST = $(man_MANS)
     3EXTRA_DIST = doxygen.cfg.in doxygen.css footer.html header.html \
     4             $(man_MANS) $(doxygen_DOX)
    45
     6doxygen_DOX = neercs.dox
    57man_MANS = neercs.1
     8
     9if BUILD_DOCUMENTATION
     10htmldoc_DATA = html/doxygen.css
     11htmldocdir = $(datadir)/doc/neercs/html
     12if USE_LATEX
     13pdfdoc_DATA = latex/neercs.pdf
     14pdfdocdir = $(datadir)/doc/neercs/pdf
     15endif
     16endif
     17
     18html/doxygen.css html/doxygen.png: stamp-doxygen
     19latex/neercs.pdf: stamp-latex
     20
     21stamp-doxygen: $(doxygen_DOX) doxygen.cfg
     22if BUILD_DOCUMENTATION
     23        doxygen doxygen.cfg
     24        touch stamp-doxygen
     25endif
     26
     27stamp-latex: stamp-doxygen
     28if BUILD_DOCUMENTATION
     29if USE_LATEX
     30        rm -f latex/neercs.tex latex/neercs.pdf
     31        mv latex/refman.tex latex/neercs.tex
     32        sed 's/setlength{/renewcommand{/' latex/neercs.tex > latex/refman.tex
     33        cd latex && $(MAKE) $(AM_CFLAGS) refman.pdf || (cat refman.log; exit 1)
     34        mv latex/refman.pdf latex/neercs.pdf
     35        touch stamp-latex
     36endif
     37endif
     38
     39clean: clean-local
     40clean-local:
     41        -rm -Rf html latex man
     42        -rm -f stamp-latex stamp-doxygen
    643
    744install-data-local:
    845        $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
     46if BUILD_DOCUMENTATION
     47        mkdir -p $(DESTDIR)$(datadir)/doc
     48        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/neercs/html
     49        cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
     50          $(DESTDIR)$(datadir)/doc/neercs/html
     51        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
     52        for man in $$(find man -name '*.3neercs'); do \
     53          sed -e 's/man3neercs/man3/g' -e "s/fC'\([a-zA-Z0-9]*\)'/fC\"\1\"/g" \
     54            $$man >$(DESTDIR)$(mandir)/man3/$${man##*/}; \
     55        done
     56endif
    957
     58uninstall-local:
     59        rmdir $(DESTDIR)$(datadir)/doc 2>/dev/null || true
     60
  • neercs/trunk/src/client.c

    r4213 r4218  
    164164}
    165165
    166 /*
    167  * The main client loop.
     166/** \brief Main client loop.
     167 *
     168 * This is the main client loop.
    168169 *
    169170 * Repeat forever:
  • neercs/trunk/src/neercs.h

    r4110 r4218  
    300300
    301301int start_client(struct screen_list * screen_list);
     302/** \defgroup client neercs client
     303 * @{ */
    302304void mainloop(struct screen_list *screen_list);
     305/** }@ */
     306
    303307
    304308int create_pty(char *cmd, unsigned int w, unsigned int h, int *cpid);
Note: See TracChangeset for help on using the changeset viewer.