doc/Makefile.am
changeset 94 a4688e4138ec
parent 56 9597aa501c7c
child 146 4b42aa24ce12
child 153 976a014b3797
equal deleted inserted replaced
2:99b524c14993 3:db2937828987
     1 htmldir = $(datadir)/doc/$(PACKAGE)/html
       
     2 
       
     3 EXTRA_DIST += \
     1 EXTRA_DIST += \
     4 	doc/Makefile \
     2 	doc/Makefile \
     5 	doc/Doxyfile.in
     3 	doc/Doxyfile.in \
       
     4 	doc/coding_style.dox \
       
     5 	doc/dirs.dox \
       
     6 	doc/groups.dox \
       
     7 	doc/license.dox \
       
     8 	doc/mainpage.dox \
       
     9 	doc/namespaces.dox \
       
    10 	doc/html
     6 
    11 
     7 doc:
    12 doc/html:
       
    13 	$(MAKE) $(AM_MAKEFLAGS) html
       
    14 
       
    15 html-local:
     8 	if test ${doxygen_found} = yes; then \
    16 	if test ${doxygen_found} = yes; then \
     9 	  cd doc; \
    17 	  cd doc; \
    10 	  doxygen Doxyfile; \
    18 	  doxygen Doxyfile; \
    11 	  cd ..; \
    19 	  cd ..; \
    12 	fi
    20 	else \
    13 
    21 	  echo; \
    14 doc-clean:
    22 	  echo "Doxygen not found."; \
    15 	if test ${doxygen_found} = yes; then \
    23 	  echo; \
    16 	  rm -rf doc/html; \
    24 	  exit 1; \
    17 	  rm -f doc/doxygen.log; \
       
    18 	  cd doc; \
       
    19 	  doxygen Doxyfile; \
       
    20 	  cd ..; \
       
    21 	fi
    25 	fi
    22 
    26 
    23 clean-local:
    27 clean-local:
    24 	-rm -rf doc/html
    28 	-rm -rf doc/html
    25 	-rm -f doc/doxygen.log
    29 	-rm -f doc/doxygen.log
    26 
    30 
    27 doc/html:
       
    28 	$(MAKE) $(AM_MAKEFLAGS) doc-clean
       
    29 
       
    30 update-external-tags:
    31 update-external-tags:
    31 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    32 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    32 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    33 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    33 	rm doc/libstdc++.tag.tmp
    34 	rm doc/libstdc++.tag.tmp
    34 
    35 
    35 if WANT_DOC
    36 install-html-local: doc/html
    36 
       
    37 install-data-local: doc/html
       
    38 	@$(NORMAL_INSTALL)
    37 	@$(NORMAL_INSTALL)
    39 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
    38 	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
    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 \
    39 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    41 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    40 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    42 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
    41 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
    43 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
    42 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
    44 	done
    43 	done
    45 
    44 
    46 uninstall-local: doc/html
    45 uninstall-local:
    47 	@$(NORMAL_UNINSTALL)
    46 	@$(NORMAL_UNINSTALL)
    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 \
    47 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    49 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    48 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    50 	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
    49 	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
    51 	  rm -f $(DESTDIR)$(htmldir)/$$f; \
    50 	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
    52 	done
    51 	done
    53 
    52 
    54 endif WANT_DOC
    53 .PHONY: update-external-tags
    55 
       
    56 .PHONY: doc doc-clean