doc/Makefile.am
author Peter Kovacs <kpeter@inf.elte.hu>
Wed, 15 Apr 2009 04:26:13 +0200
changeset 586 7c12061bd271
parent 337 560e4b6d020d
child 587 114920bd21ef
permissions -rw-r--r--
Add images + fixes in the doc of connectivity tools (#262)
ladanyi@1
     1
EXTRA_DIST += \
ladanyi@60
     2
	doc/Doxyfile.in \
kpeter@316
     3
	doc/DoxygenLayout.xml \
ladanyi@60
     4
	doc/coding_style.dox \
ladanyi@60
     5
	doc/dirs.dox \
ladanyi@60
     6
	doc/groups.dox \
alpar@156
     7
	doc/lgf.dox \
ladanyi@60
     8
	doc/license.dox \
ladanyi@60
     9
	doc/mainpage.dox \
kpeter@306
    10
	doc/migration.dox \
alpar@270
    11
	doc/named-param.dox \
ladanyi@60
    12
	doc/namespaces.dox \
ladanyi@227
    13
	doc/html \
ladanyi@227
    14
	doc/CMakeLists.txt
ladanyi@1
    15
ladanyi@153
    16
DOC_EPS_IMAGES18 = \
kpeter@586
    17
	bipartite_matching.eps \
kpeter@586
    18
	bipartite_partitions.eps \
kpeter@586
    19
	connected_components.eps \
kpeter@586
    20
	edge_biconnected_components.eps \
deba@335
    21
	grid_graph.eps \
kpeter@586
    22
	node_biconnected_components.eps \
ladanyi@153
    23
	nodeshape_0.eps \
ladanyi@153
    24
	nodeshape_1.eps \
ladanyi@153
    25
	nodeshape_2.eps \
ladanyi@153
    26
	nodeshape_3.eps \
kpeter@586
    27
	nodeshape_4.eps \
kpeter@586
    28
	strongly_connected_components.eps
ladanyi@153
    29
ladanyi@153
    30
DOC_EPS_IMAGES = \
ladanyi@153
    31
	$(DOC_EPS_IMAGES18)
ladanyi@153
    32
ladanyi@153
    33
DOC_PNG_IMAGES = \
ladanyi@153
    34
	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
ladanyi@153
    35
ladanyi@153
    36
EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
ladanyi@153
    37
ladanyi@60
    38
doc/html:
ladanyi@60
    39
	$(MAKE) $(AM_MAKEFLAGS) html
ladanyi@60
    40
ladanyi@153
    41
GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
ladanyi@153
    42
ladanyi@153
    43
$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
ladanyi@153
    44
	-mkdir doc/gen-images
ladanyi@153
    45
	if test ${gs_found} = yes; then \
ladanyi@153
    46
	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
ladanyi@153
    47
	else \
ladanyi@153
    48
	  echo; \
ladanyi@153
    49
	  echo "Ghostscript not found."; \
ladanyi@153
    50
	  echo; \
ladanyi@153
    51
	  exit 1; \
ladanyi@153
    52
	fi
ladanyi@153
    53
ladanyi@153
    54
html-local: $(DOC_PNG_IMAGES)
ladanyi@1
    55
	if test ${doxygen_found} = yes; then \
ladanyi@1
    56
	  cd doc; \
ladanyi@1
    57
	  doxygen Doxyfile; \
ladanyi@1
    58
	  cd ..; \
ladanyi@60
    59
	else \
ladanyi@60
    60
	  echo; \
ladanyi@60
    61
	  echo "Doxygen not found."; \
ladanyi@60
    62
	  echo; \
ladanyi@60
    63
	  exit 1; \
ladanyi@1
    64
	fi
ladanyi@1
    65
ladanyi@1
    66
clean-local:
ladanyi@1
    67
	-rm -rf doc/html
ladanyi@1
    68
	-rm -f doc/doxygen.log
ladanyi@153
    69
	-rm -f $(DOC_PNG_IMAGES)
ladanyi@153
    70
	-rm -rf doc/gen-images
ladanyi@1
    71
alpar@56
    72
update-external-tags:
alpar@56
    73
	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
alpar@56
    74
	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
alpar@56
    75
	rm doc/libstdc++.tag.tmp
alpar@56
    76
ladanyi@60
    77
install-html-local: doc/html
ladanyi@1
    78
	@$(NORMAL_INSTALL)
ladanyi@60
    79
	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
ladanyi@60
    80
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
    81
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@60
    82
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
ladanyi@60
    83
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
ladanyi@1
    84
	done
ladanyi@1
    85
ladanyi@60
    86
uninstall-local:
ladanyi@1
    87
	@$(NORMAL_UNINSTALL)
ladanyi@60
    88
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
    89
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@60
    90
	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
ladanyi@60
    91
	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
ladanyi@1
    92
	done
ladanyi@1
    93
ladanyi@60
    94
.PHONY: update-external-tags