doc/Makefile.am
author Alpar Juttner <alpar@cs.elte.hu>
Tue, 20 Dec 2011 17:44:38 +0100
changeset 941 7c4ba7daaf5f
parent 663 8b0df68370a4
child 744 f8c468367dab
child 945 63fd58460c39
permissions -rw-r--r--
Merge
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@663
    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@587
    18
	grid_graph.eps \
alpar@587
    19
	nodeshape_0.eps \
alpar@587
    20
	nodeshape_1.eps \
alpar@587
    21
	nodeshape_2.eps \
alpar@587
    22
	nodeshape_3.eps \
alpar@587
    23
	nodeshape_4.eps
alpar@587
    24
alpar@587
    25
DOC_EPS_IMAGES27 = \
kpeter@586
    26
	bipartite_matching.eps \
kpeter@586
    27
	bipartite_partitions.eps \
kpeter@586
    28
	connected_components.eps \
kpeter@586
    29
	edge_biconnected_components.eps \
kpeter@586
    30
	node_biconnected_components.eps \
kpeter@586
    31
	strongly_connected_components.eps
ladanyi@153
    32
ladanyi@153
    33
DOC_EPS_IMAGES = \
alpar@587
    34
	$(DOC_EPS_IMAGES18) \
alpar@587
    35
	$(DOC_EPS_IMAGES27)
ladanyi@153
    36
ladanyi@153
    37
DOC_PNG_IMAGES = \
ladanyi@153
    38
	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
ladanyi@153
    39
ladanyi@153
    40
EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
ladanyi@153
    41
ladanyi@60
    42
doc/html:
ladanyi@60
    43
	$(MAKE) $(AM_MAKEFLAGS) html
ladanyi@60
    44
ladanyi@153
    45
GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
ladanyi@153
    46
ladanyi@153
    47
$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
ladanyi@153
    48
	-mkdir doc/gen-images
ladanyi@153
    49
	if test ${gs_found} = yes; then \
ladanyi@153
    50
	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
ladanyi@153
    51
	else \
ladanyi@153
    52
	  echo; \
ladanyi@153
    53
	  echo "Ghostscript not found."; \
ladanyi@153
    54
	  echo; \
ladanyi@153
    55
	  exit 1; \
ladanyi@153
    56
	fi
ladanyi@153
    57
alpar@587
    58
$(DOC_EPS_IMAGES27:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
alpar@587
    59
	-mkdir doc/gen-images
alpar@587
    60
	if test ${gs_found} = yes; then \
alpar@587
    61
	  $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<; \
alpar@587
    62
	else \
alpar@587
    63
	  echo; \
alpar@587
    64
	  echo "Ghostscript not found."; \
alpar@587
    65
	  echo; \
alpar@587
    66
	  exit 1; \
alpar@587
    67
	fi
alpar@587
    68
ladanyi@153
    69
html-local: $(DOC_PNG_IMAGES)
ladanyi@1
    70
	if test ${doxygen_found} = yes; then \
ladanyi@1
    71
	  cd doc; \
ladanyi@1
    72
	  doxygen Doxyfile; \
ladanyi@1
    73
	  cd ..; \
ladanyi@60
    74
	else \
ladanyi@60
    75
	  echo; \
ladanyi@60
    76
	  echo "Doxygen not found."; \
ladanyi@60
    77
	  echo; \
ladanyi@60
    78
	  exit 1; \
ladanyi@1
    79
	fi
ladanyi@1
    80
ladanyi@1
    81
clean-local:
ladanyi@1
    82
	-rm -rf doc/html
ladanyi@1
    83
	-rm -f doc/doxygen.log
ladanyi@153
    84
	-rm -f $(DOC_PNG_IMAGES)
ladanyi@153
    85
	-rm -rf doc/gen-images
ladanyi@1
    86
alpar@56
    87
update-external-tags:
alpar@56
    88
	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
alpar@56
    89
	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
alpar@56
    90
	rm doc/libstdc++.tag.tmp
alpar@56
    91
ladanyi@60
    92
install-html-local: doc/html
ladanyi@1
    93
	@$(NORMAL_INSTALL)
ladanyi@673
    94
	$(mkinstalldirs) $(DESTDIR)$(htmldir)/html
ladanyi@60
    95
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
    96
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@673
    97
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f"; \
ladanyi@673
    98
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f; \
ladanyi@1
    99
	done
ladanyi@1
   100
ladanyi@60
   101
uninstall-local:
ladanyi@1
   102
	@$(NORMAL_UNINSTALL)
ladanyi@60
   103
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
   104
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@673
   105
	  echo " rm -f $(DESTDIR)$(htmldir)/html/$$f"; \
ladanyi@673
   106
	  rm -f $(DESTDIR)$(htmldir)/html/$$f; \
ladanyi@1
   107
	done
ladanyi@1
   108
ladanyi@60
   109
.PHONY: update-external-tags