doc/Makefile.am
author Alpar Juttner <alpar@cs.elte.hu>
Fri, 05 Aug 2011 00:17:29 +0200
branch1.0
changeset 1078 c59bdcc8e33e
parent 316 689f24ee83e6
parent 306 2bf7c645d5a6
child 349 560e4b6d020d
permissions -rw-r--r--
Unify sources
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 = \
ladanyi@153
    17
	nodeshape_0.eps \
ladanyi@153
    18
	nodeshape_1.eps \
ladanyi@153
    19
	nodeshape_2.eps \
ladanyi@153
    20
	nodeshape_3.eps \
ladanyi@153
    21
	nodeshape_4.eps
ladanyi@153
    22
ladanyi@153
    23
DOC_EPS_IMAGES = \
ladanyi@153
    24
	$(DOC_EPS_IMAGES18)
ladanyi@153
    25
ladanyi@153
    26
DOC_PNG_IMAGES = \
ladanyi@153
    27
	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
ladanyi@153
    28
ladanyi@153
    29
EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
ladanyi@153
    30
ladanyi@60
    31
doc/html:
ladanyi@60
    32
	$(MAKE) $(AM_MAKEFLAGS) html
ladanyi@60
    33
ladanyi@153
    34
GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
ladanyi@153
    35
ladanyi@153
    36
$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
ladanyi@153
    37
	-mkdir doc/gen-images
ladanyi@153
    38
	if test ${gs_found} = yes; then \
ladanyi@153
    39
	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
ladanyi@153
    40
	else \
ladanyi@153
    41
	  echo; \
ladanyi@153
    42
	  echo "Ghostscript not found."; \
ladanyi@153
    43
	  echo; \
ladanyi@153
    44
	  exit 1; \
ladanyi@153
    45
	fi
ladanyi@153
    46
ladanyi@153
    47
html-local: $(DOC_PNG_IMAGES)
ladanyi@1
    48
	if test ${doxygen_found} = yes; then \
ladanyi@1
    49
	  cd doc; \
ladanyi@1
    50
	  doxygen Doxyfile; \
ladanyi@1
    51
	  cd ..; \
ladanyi@60
    52
	else \
ladanyi@60
    53
	  echo; \
ladanyi@60
    54
	  echo "Doxygen not found."; \
ladanyi@60
    55
	  echo; \
ladanyi@60
    56
	  exit 1; \
ladanyi@1
    57
	fi
ladanyi@1
    58
ladanyi@1
    59
clean-local:
ladanyi@1
    60
	-rm -rf doc/html
ladanyi@1
    61
	-rm -f doc/doxygen.log
ladanyi@153
    62
	-rm -f $(DOC_PNG_IMAGES)
ladanyi@153
    63
	-rm -rf doc/gen-images
ladanyi@1
    64
alpar@56
    65
update-external-tags:
alpar@56
    66
	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
alpar@56
    67
	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
alpar@56
    68
	rm doc/libstdc++.tag.tmp
alpar@56
    69
ladanyi@60
    70
install-html-local: doc/html
ladanyi@1
    71
	@$(NORMAL_INSTALL)
ladanyi@60
    72
	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
ladanyi@60
    73
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
    74
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@60
    75
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
ladanyi@60
    76
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
ladanyi@1
    77
	done
ladanyi@1
    78
ladanyi@60
    79
uninstall-local:
ladanyi@1
    80
	@$(NORMAL_UNINSTALL)
ladanyi@60
    81
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
ladanyi@1
    82
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@60
    83
	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
ladanyi@60
    84
	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
ladanyi@1
    85
	done
ladanyi@1
    86
ladanyi@60
    87
.PHONY: update-external-tags