doc/Makefile.am
author Peter Kovacs <kpeter@inf.elte.hu>
Sun, 16 Mar 2008 01:39:19 +0100
changeset 88 18444049848b
parent 2 1a1c050e941b
child 60 6ec5dbed8f18
permissions -rw-r--r--
Minor improvements in arg_parser files
ladanyi@1
     1
htmldir = $(datadir)/doc/$(PACKAGE)/html
ladanyi@1
     2
ladanyi@1
     3
EXTRA_DIST += \
ladanyi@1
     4
	doc/Makefile \
ladanyi@1
     5
	doc/Doxyfile.in
ladanyi@1
     6
ladanyi@1
     7
doc:
ladanyi@1
     8
	if test ${doxygen_found} = yes; then \
ladanyi@1
     9
	  cd doc; \
ladanyi@1
    10
	  doxygen Doxyfile; \
ladanyi@1
    11
	  cd ..; \
ladanyi@1
    12
	fi
ladanyi@1
    13
ladanyi@1
    14
doc-clean:
ladanyi@1
    15
	if test ${doxygen_found} = yes; then \
ladanyi@1
    16
	  rm -rf doc/html; \
ladanyi@1
    17
	  rm -f doc/doxygen.log; \
ladanyi@1
    18
	  cd doc; \
ladanyi@1
    19
	  doxygen Doxyfile; \
ladanyi@1
    20
	  cd ..; \
ladanyi@1
    21
	fi
ladanyi@1
    22
ladanyi@1
    23
clean-local:
ladanyi@1
    24
	-rm -rf doc/html
ladanyi@1
    25
	-rm -f doc/doxygen.log
ladanyi@1
    26
ladanyi@1
    27
doc/html:
ladanyi@1
    28
	$(MAKE) $(AM_MAKEFLAGS) doc-clean
ladanyi@1
    29
alpar@56
    30
update-external-tags:
alpar@56
    31
	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
alpar@56
    32
	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
alpar@56
    33
	rm doc/libstdc++.tag.tmp
alpar@56
    34
ladanyi@1
    35
if WANT_DOC
ladanyi@1
    36
ladanyi@1
    37
install-data-local: doc/html
ladanyi@1
    38
	@$(NORMAL_INSTALL)
ladanyi@1
    39
	$(mkinstalldirs) $(DESTDIR)$(htmldir)
ladanyi@1
    40
	@dir='doc/html'; shopt -s nullglob; for p in $$dir/*.html $$dir/*.css $$dir/*.png $$dir/*.gif $$dir/*.dot $$dir/*.php $$dir/*.idx $$dir/*.tag ; do \
ladanyi@1
    41
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@1
    42
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
ladanyi@1
    43
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
ladanyi@1
    44
	done
ladanyi@1
    45
ladanyi@1
    46
uninstall-local: doc/html
ladanyi@1
    47
	@$(NORMAL_UNINSTALL)
ladanyi@1
    48
	@dir='doc/html'; shopt -s nullglob; for p in $$dir/*.html $$dir/*.css $$dir/*.png $$dir/*.gif $$dir/*.dot $$dir/*.php $$dir/*.idx $$dir/*.tag ; do \
ladanyi@1
    49
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
ladanyi@1
    50
	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
ladanyi@1
    51
	  rm -f $(DESTDIR)$(htmldir)/$$f; \
ladanyi@1
    52
	done
ladanyi@1
    53
ladanyi@1
    54
endif WANT_DOC
ladanyi@1
    55
ladanyi@1
    56
.PHONY: doc doc-clean