doc/Makefile.am
changeset 153 976a014b3797
parent 60 6ec5dbed8f18
child 154 f4e4dbc1d467
equal deleted inserted replaced
3:db2937828987 5:aebf9fb56f36
     7 	doc/license.dox \
     7 	doc/license.dox \
     8 	doc/mainpage.dox \
     8 	doc/mainpage.dox \
     9 	doc/namespaces.dox \
     9 	doc/namespaces.dox \
    10 	doc/html
    10 	doc/html
    11 
    11 
       
    12 DOC_EPS_IMAGES18 = \
       
    13 	nodeshape_0.eps \
       
    14 	nodeshape_1.eps \
       
    15 	nodeshape_2.eps \
       
    16 	nodeshape_3.eps \
       
    17 	nodeshape_4.eps
       
    18 
       
    19 DOC_EPS_IMAGES = \
       
    20 	$(DOC_EPS_IMAGES18)
       
    21 
       
    22 DOC_PNG_IMAGES = \
       
    23 	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
       
    24 
       
    25 EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
       
    26 
    12 doc/html:
    27 doc/html:
    13 	$(MAKE) $(AM_MAKEFLAGS) html
    28 	$(MAKE) $(AM_MAKEFLAGS) html
    14 
    29 
    15 html-local:
    30 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
       
    31 
       
    32 $(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
       
    33 	-mkdir doc/gen-images
       
    34 	if test ${gs_found} = yes; then \
       
    35 	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
       
    36 	else \
       
    37 	  echo; \
       
    38 	  echo "Ghostscript not found."; \
       
    39 	  echo; \
       
    40 	  exit 1; \
       
    41 	fi
       
    42 
       
    43 html-local: $(DOC_PNG_IMAGES)
    16 	if test ${doxygen_found} = yes; then \
    44 	if test ${doxygen_found} = yes; then \
    17 	  cd doc; \
    45 	  cd doc; \
    18 	  doxygen Doxyfile; \
    46 	  doxygen Doxyfile; \
    19 	  cd ..; \
    47 	  cd ..; \
    20 	else \
    48 	else \
    25 	fi
    53 	fi
    26 
    54 
    27 clean-local:
    55 clean-local:
    28 	-rm -rf doc/html
    56 	-rm -rf doc/html
    29 	-rm -f doc/doxygen.log
    57 	-rm -f doc/doxygen.log
       
    58 	-rm -f $(DOC_PNG_IMAGES)
       
    59 	-rm -rf doc/gen-images
    30 
    60 
    31 update-external-tags:
    61 update-external-tags:
    32 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    62 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    33 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    63 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    34 	rm doc/libstdc++.tag.tmp
    64 	rm doc/libstdc++.tag.tmp