doc/Makefile.am
author Alpar Juttner <alpar@cs.elte.hu>
Fri, 18 Jul 2008 16:47:27 +0100
changeset 226 4c9d85f5dc93
parent 154 f4e4dbc1d467
child 227 33f8d69e642a
permissions -rw-r--r--
Merge
ladanyi@1
     1
EXTRA_DIST += \
ladanyi@60
     2
	doc/Doxyfile.in \
ladanyi@60
     3
	doc/coding_style.dox \
ladanyi@60
     4
	doc/dirs.dox \
ladanyi@60
     5
	doc/groups.dox \
alpar@156
     6
	doc/lgf.dox \
ladanyi@60
     7
	doc/license.dox \
ladanyi@60
     8
	doc/mainpage.dox \
ladanyi@60
     9
	doc/namespaces.dox \
ladanyi@60
    10
	doc/html
ladanyi@1
    11
ladanyi@153
    12
DOC_EPS_IMAGES18 = \
ladanyi@153
    13
	nodeshape_0.eps \
ladanyi@153
    14
	nodeshape_1.eps \
ladanyi@153
    15
	nodeshape_2.eps \
ladanyi@153
    16
	nodeshape_3.eps \
ladanyi@153
    17
	nodeshape_4.eps
ladanyi@153
    18
ladanyi@153
    19
DOC_EPS_IMAGES = \
ladanyi@153
    20
	$(DOC_EPS_IMAGES18)
ladanyi@153
    21
ladanyi@153
    22
DOC_PNG_IMAGES = \
ladanyi@153
    23
	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
ladanyi@153
    24
ladanyi@153
    25
EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
ladanyi@153
    26
ladanyi@60
    27
doc/html:
ladanyi@60
    28
	$(MAKE) $(AM_MAKEFLAGS) html
ladanyi@60
    29
ladanyi@153
    30
GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
ladanyi@153
    31
ladanyi@153
    32
$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
ladanyi@153
    33
	-mkdir doc/gen-images
ladanyi@153
    34
	if test ${gs_found} = yes; then \
ladanyi@153
    35
	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
ladanyi@153
    36
	else \
ladanyi@153
    37
	  echo; \
ladanyi@153
    38
	  echo "Ghostscript not found."; \
ladanyi@153
    39
	  echo; \
ladanyi@153
    40
	  exit 1; \
ladanyi@153
    41
	fi
ladanyi@153
    42
ladanyi@153
    43
html-local: $(DOC_PNG_IMAGES)
ladanyi@1
    44
	if test ${doxygen_found} = yes; then \
ladanyi@1
    45
	  cd doc; \
ladanyi@1
    46
	  doxygen Doxyfile; \
ladanyi@1
    47
	  cd ..; \
ladanyi@60
    48
	else \
ladanyi@60
    49
	  echo; \
ladanyi@60
    50
	  echo "Doxygen not found."; \
ladanyi@60
    51
	  echo; \
ladanyi@60
    52
	  exit 1; \
ladanyi@1
    53
	fi
ladanyi@1
    54
ladanyi@1
    55
clean-local:
ladanyi@1
    56
	-rm -rf doc/html
ladanyi@1
    57
	-rm -f doc/doxygen.log
ladanyi@153
    58
	-rm -f $(DOC_PNG_IMAGES)
ladanyi@153
    59
	-rm -rf doc/gen-images
ladanyi@1
    60
alpar@56
    61
update-external-tags:
alpar@56
    62
	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
alpar@56
    63
	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
alpar@56
    64
	rm doc/libstdc++.tag.tmp
alpar@56
    65
ladanyi@60
    66
install-html-local: doc/html
ladanyi@1
    67
	@$(NORMAL_INSTALL)
ladanyi@60
    68
	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
ladanyi@60
    69
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
    70
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@60
    71
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
ladanyi@60
    72
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
ladanyi@1
    73
	done
ladanyi@1
    74
ladanyi@60
    75
uninstall-local:
ladanyi@1
    76
	@$(NORMAL_UNINSTALL)
ladanyi@60
    77
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
    78
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@60
    79
	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
ladanyi@60
    80
	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
ladanyi@1
    81
	done
ladanyi@1
    82
ladanyi@60
    83
.PHONY: update-external-tags