gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
'update-external-tags' make target added It is used to dowload or update the doxygen external tag definition file of libstdc++. After doing that, any usase of STL will be linked to their documentations at http://gcc.gnu.org.
0 1 0
default
1 file changed with 5 insertions and 0 deletions:
↑ Collapse diff ↑
Show white space 96 line context
1 1
htmldir = $(datadir)/doc/$(PACKAGE)/html
2 2

	
3 3
EXTRA_DIST += \
4 4
	doc/Makefile \
5 5
	doc/Doxyfile.in
6 6

	
7 7
doc:
8 8
	if test ${doxygen_found} = yes; then \
9 9
	  cd doc; \
10 10
	  doxygen Doxyfile; \
11 11
	  cd ..; \
12 12
	fi
13 13

	
14 14
doc-clean:
15 15
	if test ${doxygen_found} = yes; then \
16 16
	  rm -rf doc/html; \
17 17
	  rm -f doc/doxygen.log; \
18 18
	  cd doc; \
19 19
	  doxygen Doxyfile; \
20 20
	  cd ..; \
21 21
	fi
22 22

	
23 23
clean-local:
24 24
	-rm -rf doc/html
25 25
	-rm -f doc/doxygen.log
26 26

	
27 27
doc/html:
28 28
	$(MAKE) $(AM_MAKEFLAGS) doc-clean
29 29

	
30
update-external-tags:
31
	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
	rm doc/libstdc++.tag.tmp
34

	
30 35
if WANT_DOC
31 36

	
32 37
install-data-local: doc/html
33 38
	@$(NORMAL_INSTALL)
34 39
	$(mkinstalldirs) $(DESTDIR)$(htmldir)
35 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 \
36 41
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
37 42
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
38 43
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
39 44
	done
40 45

	
41 46
uninstall-local: doc/html
42 47
	@$(NORMAL_UNINSTALL)
43 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 \
44 49
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
45 50
	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
46 51
	  rm -f $(DESTDIR)$(htmldir)/$$f; \
47 52
	done
48 53

	
49 54
endif WANT_DOC
50 55

	
51 56
.PHONY: doc doc-clean
0 comments (0 inline)