doc/Makefile.am
author Peter Kovacs <kpeter@inf.elte.hu>
Fri, 24 Apr 2009 11:54:48 +0200
changeset 664 4137ef9aacc6
parent 633 7c12061bd271
child 710 8b0df68370a4
permissions -rw-r--r--
Fix and uniform the usage of Graph and Parent typedefs (#268)

- Rename Graph typedefs to GraphType in the implementation of graph
maps and MapExtender to prevent conflicts (especially using VS).
They are not public.
- Make Parent typedefs private in all classes.
- Replace Digraph with Graph in some places
(fix faulty renamings of the script).
- Use Graph and Digraph typedefs (more) consequently.
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 = \
alpar@634
    17
	grid_graph.eps \
alpar@634
    18
	nodeshape_0.eps \
alpar@634
    19
	nodeshape_1.eps \
alpar@634
    20
	nodeshape_2.eps \
alpar@634
    21
	nodeshape_3.eps \
alpar@634
    22
	nodeshape_4.eps
alpar@634
    23
alpar@634
    24
DOC_EPS_IMAGES27 = \
kpeter@633
    25
	bipartite_matching.eps \
kpeter@633
    26
	bipartite_partitions.eps \
kpeter@633
    27
	connected_components.eps \
kpeter@633
    28
	edge_biconnected_components.eps \
kpeter@633
    29
	node_biconnected_components.eps \
kpeter@633
    30
	strongly_connected_components.eps
ladanyi@153
    31
ladanyi@153
    32
DOC_EPS_IMAGES = \
alpar@634
    33
	$(DOC_EPS_IMAGES18) \
alpar@634
    34
	$(DOC_EPS_IMAGES27)
ladanyi@153
    35
ladanyi@153
    36
DOC_PNG_IMAGES = \
ladanyi@153
    37
	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
ladanyi@153
    38
ladanyi@153
    39
EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
ladanyi@153
    40
ladanyi@60
    41
doc/html:
ladanyi@60
    42
	$(MAKE) $(AM_MAKEFLAGS) html
ladanyi@60
    43
ladanyi@153
    44
GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
ladanyi@153
    45
ladanyi@153
    46
$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
ladanyi@153
    47
	-mkdir doc/gen-images
ladanyi@153
    48
	if test ${gs_found} = yes; then \
ladanyi@153
    49
	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
ladanyi@153
    50
	else \
ladanyi@153
    51
	  echo; \
ladanyi@153
    52
	  echo "Ghostscript not found."; \
ladanyi@153
    53
	  echo; \
ladanyi@153
    54
	  exit 1; \
ladanyi@153
    55
	fi
ladanyi@153
    56
alpar@634
    57
$(DOC_EPS_IMAGES27:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
alpar@634
    58
	-mkdir doc/gen-images
alpar@634
    59
	if test ${gs_found} = yes; then \
alpar@634
    60
	  $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<; \
alpar@634
    61
	else \
alpar@634
    62
	  echo; \
alpar@634
    63
	  echo "Ghostscript not found."; \
alpar@634
    64
	  echo; \
alpar@634
    65
	  exit 1; \
alpar@634
    66
	fi
alpar@634
    67
ladanyi@153
    68
html-local: $(DOC_PNG_IMAGES)
ladanyi@1
    69
	if test ${doxygen_found} = yes; then \
ladanyi@1
    70
	  cd doc; \
ladanyi@1
    71
	  doxygen Doxyfile; \
ladanyi@1
    72
	  cd ..; \
ladanyi@60
    73
	else \
ladanyi@60
    74
	  echo; \
ladanyi@60
    75
	  echo "Doxygen not found."; \
ladanyi@60
    76
	  echo; \
ladanyi@60
    77
	  exit 1; \
ladanyi@1
    78
	fi
ladanyi@1
    79
ladanyi@1
    80
clean-local:
ladanyi@1
    81
	-rm -rf doc/html
ladanyi@1
    82
	-rm -f doc/doxygen.log
ladanyi@153
    83
	-rm -f $(DOC_PNG_IMAGES)
ladanyi@153
    84
	-rm -rf doc/gen-images
ladanyi@1
    85
alpar@56
    86
update-external-tags:
alpar@56
    87
	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
alpar@56
    88
	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
alpar@56
    89
	rm doc/libstdc++.tag.tmp
alpar@56
    90
ladanyi@60
    91
install-html-local: doc/html
ladanyi@1
    92
	@$(NORMAL_INSTALL)
ladanyi@60
    93
	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
ladanyi@60
    94
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
    95
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@60
    96
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
ladanyi@60
    97
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
ladanyi@1
    98
	done
ladanyi@1
    99
ladanyi@60
   100
uninstall-local:
ladanyi@1
   101
	@$(NORMAL_UNINSTALL)
ladanyi@60
   102
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
   103
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@60
   104
	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
ladanyi@60
   105
	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
ladanyi@1
   106
	done
ladanyi@1
   107
ladanyi@60
   108
.PHONY: update-external-tags