doc/Makefile.am
author Peter Kovacs <kpeter@inf.elte.hu>
Thu, 11 Feb 2010 07:39:57 +0100
changeset 895 8131c2b9f59a
parent 791 f8c468367dab
child 943 d48d79b11f5b
permissions -rw-r--r--
Port planar image from SVN -r3524 (#62)
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 \
kpeter@710
    11
	doc/min_cost_flow.dox \
alpar@270
    12
	doc/named-param.dox \
ladanyi@60
    13
	doc/namespaces.dox \
ladanyi@227
    14
	doc/html \
ladanyi@227
    15
	doc/CMakeLists.txt
ladanyi@1
    16
ladanyi@153
    17
DOC_EPS_IMAGES18 = \
alpar@634
    18
	grid_graph.eps \
alpar@634
    19
	nodeshape_0.eps \
alpar@634
    20
	nodeshape_1.eps \
alpar@634
    21
	nodeshape_2.eps \
alpar@634
    22
	nodeshape_3.eps \
alpar@634
    23
	nodeshape_4.eps
alpar@634
    24
alpar@634
    25
DOC_EPS_IMAGES27 = \
kpeter@633
    26
	bipartite_matching.eps \
kpeter@633
    27
	bipartite_partitions.eps \
kpeter@633
    28
	connected_components.eps \
kpeter@633
    29
	edge_biconnected_components.eps \
kpeter@633
    30
	node_biconnected_components.eps \
kpeter@895
    31
	planar.eps \
kpeter@633
    32
	strongly_connected_components.eps
ladanyi@153
    33
ladanyi@153
    34
DOC_EPS_IMAGES = \
alpar@634
    35
	$(DOC_EPS_IMAGES18) \
alpar@634
    36
	$(DOC_EPS_IMAGES27)
ladanyi@153
    37
ladanyi@153
    38
DOC_PNG_IMAGES = \
ladanyi@153
    39
	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
ladanyi@153
    40
ladanyi@153
    41
EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
ladanyi@153
    42
ladanyi@60
    43
doc/html:
ladanyi@60
    44
	$(MAKE) $(AM_MAKEFLAGS) html
ladanyi@60
    45
ladanyi@153
    46
GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
ladanyi@153
    47
ladanyi@153
    48
$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
ladanyi@153
    49
	-mkdir doc/gen-images
ladanyi@153
    50
	if test ${gs_found} = yes; then \
ladanyi@153
    51
	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
ladanyi@153
    52
	else \
ladanyi@153
    53
	  echo; \
ladanyi@153
    54
	  echo "Ghostscript not found."; \
ladanyi@153
    55
	  echo; \
ladanyi@153
    56
	  exit 1; \
ladanyi@153
    57
	fi
ladanyi@153
    58
alpar@634
    59
$(DOC_EPS_IMAGES27:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
alpar@634
    60
	-mkdir doc/gen-images
alpar@634
    61
	if test ${gs_found} = yes; then \
alpar@634
    62
	  $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<; \
alpar@634
    63
	else \
alpar@634
    64
	  echo; \
alpar@634
    65
	  echo "Ghostscript not found."; \
alpar@634
    66
	  echo; \
alpar@634
    67
	  exit 1; \
alpar@634
    68
	fi
alpar@634
    69
alpar@791
    70
references.dox: doc/references.bib
alpar@791
    71
	if test ${python_found} = yes; then \
alpar@791
    72
	  cd doc; \
alpar@791
    73
	  python @abs_top_srcdir@/scripts/bib2dox.py @abs_top_builddir@/$< >$@; \
alpar@791
    74
	  cd ..; \
alpar@791
    75
	else \
alpar@791
    76
	  echo; \
alpar@791
    77
	  echo "Python not found."; \
alpar@791
    78
	  echo; \
alpar@791
    79
	  exit 1; \
alpar@791
    80
	fi
alpar@791
    81
alpar@791
    82
html-local: $(DOC_PNG_IMAGES) references.dox
ladanyi@1
    83
	if test ${doxygen_found} = yes; then \
ladanyi@1
    84
	  cd doc; \
ladanyi@1
    85
	  doxygen Doxyfile; \
ladanyi@1
    86
	  cd ..; \
ladanyi@60
    87
	else \
ladanyi@60
    88
	  echo; \
ladanyi@60
    89
	  echo "Doxygen not found."; \
ladanyi@60
    90
	  echo; \
ladanyi@60
    91
	  exit 1; \
ladanyi@1
    92
	fi
ladanyi@1
    93
ladanyi@1
    94
clean-local:
ladanyi@1
    95
	-rm -rf doc/html
ladanyi@1
    96
	-rm -f doc/doxygen.log
ladanyi@153
    97
	-rm -f $(DOC_PNG_IMAGES)
ladanyi@153
    98
	-rm -rf doc/gen-images
ladanyi@1
    99
alpar@56
   100
update-external-tags:
alpar@56
   101
	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
alpar@56
   102
	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
alpar@56
   103
	rm doc/libstdc++.tag.tmp
alpar@56
   104
ladanyi@60
   105
install-html-local: doc/html
ladanyi@1
   106
	@$(NORMAL_INSTALL)
ladanyi@720
   107
	$(mkinstalldirs) $(DESTDIR)$(htmldir)/html
ladanyi@60
   108
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
   109
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@720
   110
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f"; \
ladanyi@720
   111
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f; \
ladanyi@1
   112
	done
ladanyi@1
   113
ladanyi@60
   114
uninstall-local:
ladanyi@1
   115
	@$(NORMAL_UNINSTALL)
ladanyi@60
   116
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
   117
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@720
   118
	  echo " rm -f $(DESTDIR)$(htmldir)/html/$$f"; \
ladanyi@720
   119
	  rm -f $(DESTDIR)$(htmldir)/html/$$f; \
ladanyi@1
   120
	done
ladanyi@1
   121
ladanyi@60
   122
.PHONY: update-external-tags