OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / lib / classpath / doc / api / Makefile.am
1 if CREATE_API_DOCS
2 noinst_DATA = html
3 endif
4
5 sourcepath = $(top_builddir):$(top_srcdir):$(top_srcdir)/vm/reference:$(top_srcdir)/external/w3c_dom:$(top_srcdir)/external/sax:$(top_srcdir)/external/jsr166
6
7 classpathbox = "<span class='logo'><a href='http://www.gnu.org/software/classpath' target='_top'>GNU Classpath</a> ($(VERSION))"
8
9 if CREATE_API_DOCS
10 install-data-local:
11         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/api
12         @list='$(htmllist)'; for p in $$list; do \
13           f="`echo $$p | sed -e 's|^.*/||'`"; \
14           if test -f "$$p"; then \
15             echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/api/$$f"; \
16             $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/api/$$f; \
17           elif test -d "$$p"; then \
18             $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/api/$$f; \
19           fi; \
20         done
21
22 uninstall-local:
23         @list='$(htmllist)'; for p in $$list; do \
24           f="`echo $$p | sed -e 's|^.*/||'`"; \
25           if test -f "$$p"; then \
26             echo " rm -f $(DESTDIR)$(pkgdatadir)/api/$$f"; \
27             rm -f $(DESTDIR)$(pkgdatadir)/api/$$f; \
28           fi; \
29         done
30 endif
31
32 html: create_html
33
34 clean-local:
35         -rm -rf html create_html gjdoc_rawcomment.cache
36
37 create_html:
38         -$(MKDIR) html > /dev/null 2>&1
39 if CREATE_API_DOCS
40         $(GJDOC) \
41         -use \
42         -sourcepath "$(sourcepath)" \
43         -encoding UTF-8 \
44         -breakiterator \
45         -licensetext \
46         -linksource \
47         -splitindex \
48         -validhtml \
49         -d html \
50         -doctitle "GNU Classpath $(VERSION)" \
51         -windowtitle "GNU Classpath $(VERSION) Documentation" \
52         -header $(classpathbox) -footer $(classpathbox) \
53         -subpackages java:javax:org
54         touch create_html
55 endif