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