doc/Makefile.am
author Alpar Juttner <alpar@cs.elte.hu>
Thu, 13 Sep 2012 11:45:36 +0200
changeset 792 761fe0846f49
parent 675 e4378da8cfcb
permissions -rw-r--r--
Fix clang compilation warnings and errors (#449)
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@661
    11
	doc/min_cost_flow.dox \
alpar@270
    12
	doc/named-param.dox \
ladanyi@60
    13
	doc/namespaces.dox \
alpar@777
    14
	doc/template.h \
ladanyi@227
    15
	doc/html \
ladanyi@227
    16
	doc/CMakeLists.txt
ladanyi@1
    17
ladanyi@153
    18
DOC_EPS_IMAGES18 = \
alpar@579
    19
	grid_graph.eps \
alpar@579
    20
	nodeshape_0.eps \
alpar@579
    21
	nodeshape_1.eps \
alpar@579
    22
	nodeshape_2.eps \
alpar@579
    23
	nodeshape_3.eps \
alpar@579
    24
	nodeshape_4.eps
alpar@579
    25
alpar@579
    26
DOC_EPS_IMAGES27 = \
kpeter@578
    27
	bipartite_matching.eps \
kpeter@578
    28
	bipartite_partitions.eps \
kpeter@578
    29
	connected_components.eps \
kpeter@578
    30
	edge_biconnected_components.eps \
kpeter@578
    31
	node_biconnected_components.eps \
kpeter@578
    32
	strongly_connected_components.eps
ladanyi@153
    33
ladanyi@153
    34
DOC_EPS_IMAGES = \
alpar@579
    35
	$(DOC_EPS_IMAGES18) \
alpar@579
    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@579
    59
$(DOC_EPS_IMAGES27:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
alpar@579
    60
	-mkdir doc/gen-images
alpar@579
    61
	if test ${gs_found} = yes; then \
alpar@579
    62
	  $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<; \
alpar@579
    63
	else \
alpar@579
    64
	  echo; \
alpar@579
    65
	  echo "Ghostscript not found."; \
alpar@579
    66
	  echo; \
alpar@579
    67
	  exit 1; \
alpar@579
    68
	fi
alpar@579
    69
ladanyi@153
    70
html-local: $(DOC_PNG_IMAGES)
ladanyi@1
    71
	if test ${doxygen_found} = yes; then \
ladanyi@1
    72
	  cd doc; \
ladanyi@1
    73
	  doxygen Doxyfile; \
ladanyi@1
    74
	  cd ..; \
ladanyi@60
    75
	else \
ladanyi@60
    76
	  echo; \
ladanyi@60
    77
	  echo "Doxygen not found."; \
ladanyi@60
    78
	  echo; \
ladanyi@60
    79
	  exit 1; \
ladanyi@1
    80
	fi
ladanyi@1
    81
ladanyi@1
    82
clean-local:
ladanyi@1
    83
	-rm -rf doc/html
ladanyi@1
    84
	-rm -f doc/doxygen.log
ladanyi@153
    85
	-rm -f $(DOC_PNG_IMAGES)
ladanyi@153
    86
	-rm -rf doc/gen-images
ladanyi@1
    87
alpar@56
    88
update-external-tags:
alpar@56
    89
	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
alpar@56
    90
	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
alpar@56
    91
	rm doc/libstdc++.tag.tmp
alpar@56
    92
ladanyi@60
    93
install-html-local: doc/html
ladanyi@1
    94
	@$(NORMAL_INSTALL)
ladanyi@675
    95
	$(mkinstalldirs) $(DESTDIR)$(htmldir)/html
ladanyi@60
    96
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
    97
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@675
    98
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f"; \
ladanyi@675
    99
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f; \
ladanyi@1
   100
	done
ladanyi@1
   101
ladanyi@60
   102
uninstall-local:
ladanyi@1
   103
	@$(NORMAL_UNINSTALL)
ladanyi@60
   104
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
   105
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@675
   106
	  echo " rm -f $(DESTDIR)$(htmldir)/html/$$f"; \
ladanyi@675
   107
	  rm -f $(DESTDIR)$(htmldir)/html/$$f; \
ladanyi@1
   108
	done
ladanyi@1
   109
ladanyi@60
   110
.PHONY: update-external-tags