COIN-OR::LEMON - Graph Library

Ticket #79: convert.patch

File convert.patch, 1.9 KB (added by Akos Ladanyi, 11 years ago)
  • configure.ac

    # HG changeset patch
    # User Akos Ladanyi <ladanyi@tmit.bme.hu>
    # Date 1208880778 -7200
    # Node ID 24d495be695528849d0c607cfb405bc93390a7df
    # Parent  e7a2aa2f39e78896b54827b78cfba0ba0af67dbc
    Convert the EPS files to PNG when generating the documentation.
    
    diff --git a/configure.ac b/configure.ac
    a b  
    2727AC_PROG_LIBTOOL
    2828
    2929AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
     30AC_CHECK_PROG([gs_found],[gs],[yes],[no])
    3031
    3132if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    3233  CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
  • doc/Makefile.am

    diff --git a/doc/Makefile.am b/doc/Makefile.am
    a b  
    66        doc/license.dox \
    77        doc/mainpage.dox \
    88        doc/namespaces.dox \
     9        doc/images \
    910        doc/html
    1011
    1112doc/html:
    1213        $(MAKE) $(AM_MAKEFLAGS) html
    1314
    14 html-local:
     15GS_COMMAND=gs -sDEVICE=png16m -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
     16
     17NODESHAPE_IMAGES = \
     18        doc/images/nodeshape_0.png \
     19        doc/images/nodeshape_1.png \
     20        doc/images/nodeshape_2.png \
     21        doc/images/nodeshape_3.png \
     22        doc/images/nodeshape_4.png
     23
     24$(NODESHAPE_IMAGES): %.png: %.eps
     25        -mkdir doc/images
     26        if test ${gs_found} = yes; then \
     27          $(GS_COMMAND) -r18 -sOutputFile=$@ $<; \
     28        else \
     29          echo; \
     30          echo "Ghostscript not found."; \
     31          echo; \
     32          exit 1; \
     33        fi
     34
     35html-local: $(NODESHAPE_IMAGES)
    1536        if test ${doxygen_found} = yes; then \
    1637          cd doc; \
    1738          doxygen Doxyfile; \
     
    2647clean-local:
    2748        -rm -rf doc/html
    2849        -rm -f doc/doxygen.log
     50        -rm -f doc/images/*.png
     51        -rmdir doc/images
    2952
    3053update-external-tags:
    3154        wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \