source: trunk/third/libxslt/doc/Makefile.am @ 20733

Revision 20733, 6.8 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20732, which included commits to RCS files with non-trunk default branches.
Line 
1## Process this file with automake to produce Makefile.in
2
3# The name of the module.
4DOC_MODULE=libxslt-$(VERSION)
5
6# The top-level SGML file.
7DOC_MAIN_XML_FILE=libxslt.xml
8
9# The directory containing the source code (if it contains documentation).
10DOC_SOURCE_DIR=..
11
12HTML_DIR=$(datadir)/doc
13
14# A file in win32 depends upon two of the doc files
15WIN32_DIR=$(top_srcdir)/win32
16
17TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/html
18PAGES=   API.html bugs.html contribs.html FAQ.html docs.html \
19         downloads.html help.html index.html intro.html news.html \
20         xsltproc2.html
21
22EPAGES=  EXSLT/bugs.html EXSLT/docs.html EXSLT/downloads.html \
23         EXSLT/help.html EXSLT/index.html EXSLT/intro.html
24
25APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \
26         APIsymbols.html APIchunk0.html search.templ
27
28EAPIPAGES=EXSLT/APIconstructors.html EXSLT/APIfiles.html \
29         EXSLT/APIfunctions.html EXSLT/APIsymbols.html EXSLT/APIchunk0.html
30
31EXTRA_DIST =                    \
32        api.xsl                 \
33        apibuild.py             \
34        EXSLT/exslt.html        \
35        EXSLT/libexslt-api.xml  \
36        EXSLT/libexslt-refs.xml \
37        libxslt-api.xml         \
38        libxslt-refs.xml        \
39        libxslt.xsa             \
40        newapi.xsl              \
41        news.xsl                \
42        search.xml              \
43        site.xsl                \
44        xslt.html               \
45        xsltproc.xml
46
47man_MANS = xsltproc.1
48
49all:    web ../NEWS libxslt.xsa $(man_MANS)
50
51api:    libxslt-api.xml libxslt-refs.xml $(APIPAGES) search.php \
52        html/index.html $(WIN32_DIR)/libxslt.def.src
53
54eapi:   EXSLT/libexslt-api.xml EXSLT/libexslt-refs.xml $(EAPIPAGES) \
55        EXSLT/html/index.html $(WIN32_DIR)/libexslt.def.src
56
57web: $(PAGES) $(EPAGES)
58
59$(PAGES): xslt.html $(srcdir)/site.xsl
60        -@(if [ -x $(bindir)/xsltproc ] ; then \
61          echo "Rebuilding the HTML Web pages from xslt.html" ; \
62          $(bindir)/xsltproc --nonet --html $(srcdir)/site.xsl \
63            xslt.html > index.html ; fi )
64        -@(if [ -x $(bindir)/xmllint ] ; then \
65          echo "Validating the HTML Web pages" ; \
66          $(bindir)/xmllint --nonet --valid --noout $(PAGES) ; fi );
67         
68$(EPAGES): EXSLT/exslt.html $(srcdir)/site.xsl
69         -@(if [ ! -d EXSLT/html ] ; then \
70           mkdir -p EXSLT/html ; fi )
71         -@(if [ -x $(bindir)/xsltproc ] ; then \
72           echo "Rebuilding the HTML Web pages from exslt.html" ; \
73           $(bindir)/xsltproc --nonet --html \
74                --stringparam dirname EXSLT/ \
75                --stringparam libname libexslt \
76                --stringparam logo_base ../ \
77                $(srcdir)/site.xsl \
78                EXSLT/exslt.html > EXSLT/index.html ; fi )
79         -@(if [ -x $(bindir)/xmllint ] ; then \
80           echo "Validating the HTML Web pages" ; \
81           $(bindir)/xmllint --nonet --valid --noout $(EPAGES) ; fi );
82
83../NEWS: $(srcdir)/news.xsl news.html
84        -@(if [ -x $(bindir)/xsltproc ] ; then \
85          $(bindir)/xsltproc --nonet $(srcdir)/news.xsl \
86            news.html > ../NEWS ; fi );
87
88libxslt.xsa: $(srcdir)/xsa.xsl news.html
89        -@(if [ -x $(bindir)/xsltproc ] ; then \
90          $(bindir)/xsltproc --nonet $(srcdir)/xsa.xsl \
91            news.html > libxslt.xsa ; fi );
92
93$(APIPAGES): libxslt-refs.xml site.xsl api.xsl $(srcdir)/site.xsl \
94             $(srcdir)/api.xsl
95        -@(if [ -x $(bindir)/xsltproc ] ; then \
96          echo "Rebuilding the HTML API pages from libxslt-refs.xml" ; \
97          $(bindir)/xsltproc --nonet --html \
98                             $(srcdir)/api.xsl \
99                             xslt.html ; fi );
100        -@(if [ -x $(bindir)/xmllint ] ; then \
101          echo "Validating the HTML API pages" ; \
102          $(bindir)/xmllint --nonet --valid --noout API*.html; fi );
103
104$(EAPIPAGES): EXSLT/libexslt-refs.xml site.xsl api.xsl
105        -@(if [ -x $(bindir)/xsltproc ] ; then \
106          echo "Rebuilding the HTML API pages from libexslt-refs.xml" ; \
107          $(bindir)/xsltproc --nonet --html --output EXSLT/ \
108                             --stringparam libname libexslt \
109                             --stringparam dirname EXSLT/ \
110                             --stringparam logo_base ../ \
111                             $(srcdir)/api.xsl \
112                             EXSLT/exslt.html ; fi );
113
114html/index.html: libxslt-api.xml $(srcdir)/newapi.xsl
115        -@(if [ -x $(bindir)/xsltproc ] ; then \
116          echo "Rebuilding the HTML pages from the XSLT API" ; \
117          $(bindir)/xsltproc --nonet \
118                             $(srcdir)/newapi.xsl libxslt-api.xml ; fi );
119        -@(if [ -x $(bindir)/xmllint ] ; then \
120          echo "Validating the resulting XHTML pages" ; \
121          $(bindir)/xmllint --nonet --valid --noout html/*.html ; fi );
122
123EXSLT/html/index.html: EXSLT/libexslt-api.xml \
124        $(srcdir)/newapi.xsl
125        -@(if [ -x $(bindir)/xsltproc ] ; then \
126          echo "Rebuilding the HTML pages from the EXSLT API" ; \
127          $(bindir)/xsltproc --nonet --output EXSLT/ \
128                             --stringparam libname libexslt \
129                             --stringparam dirname EXSLT/ \
130                             --stringparam logo_base ../../ \
131                             $(srcdir)/newapi.xsl \
132                             EXSLT/libexslt-api.xml ; fi );
133        -@(if [ -x $(bindir)/xmllint ] ; then \
134          echo "Validating the resulting XHTML pages" ; \
135          $(bindir)/xmllint --nonet --valid --noout EXSLT/html/*.html ; fi );
136                             
137       
138libxslt-api.xml libxslt-refs.xml EXSLT/libexslt-api.xml \
139  EXSLT/libexslt-refs.xml: $(srcdir)/apibuild.py $(top_srcdir)/libxslt/*.h \
140                $(top_srcdir)/libxslt/*.c $(top_srcdir)/libexslt/*.h \
141                $(top_srcdir)/libexslt/*.c
142        -($(srcdir)/apibuild.py)
143       
144xsltproc.1: xsltproc.xml
145        -@(xsltproc --nonet xsltproc.xml)
146
147# Note that in the following, xmllint output is piped to xsltproc
148search.php: $(srcdir)/api.xsl $(srcdir)/site.xsl $(srcdir)/search.templ \
149            $(srcdir)/search.xml $(srcdir)/search.php.inc
150        -@(if test -x $(bindir)/xmllint -a -x $(bindir)/xsltproc; then \
151           echo "Rebuilding search.php" ; \
152           $(bindir)/xmllint --xinclude --nonet \
153                              $(srcdir)/search.xml | \
154           $(bindir)/xsltproc --nonet - search.templ \
155                              > search.php ; else \
156           echo "Unable to find xmllint or xsltproc in $(bindir)" ; fi)
157           
158$(WIN32_DIR)/libxslt.def.src: libxslt-api.xml
159        -@(if [ -x $(bindir)/xsltproc ] ; then \
160          $(bindir)/xsltproc -o $(WIN32_DIR)/libxslt.def.src \
161          --nonet $(WIN32_DIR)/defgen.xsl libxslt-api.xml ; fi )
162
163$(WIN32_DIR)/libexslt.def.src: EXSLT/libexslt-api.xml
164        -@(if [ -x $(bindir)/xsltproc ] ; then \
165          $(bindir)/xsltproc -o $(WIN32_DIR)/libexslt.def.src \
166          --nonet $(WIN32_DIR)/defgen.xsl EXSLT/libexslt-api.xml ; fi )
167
168clean-local:
169        rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
170
171maintainer-clean-local: clean
172
173rebuild: api eapi all
174
175install-data-local:
176        $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
177        -@INSTALL@ -m 0644 $(srcdir)/*.html $(DESTDIR)$(TARGET_DIR)
178        -@INSTALL@ -m 0644 $(srcdir)/*.gif $(DESTDIR)$(TARGET_DIR)
179        $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/html
180        -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR)/html
181        -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(TARGET_DIR)/html
182        -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR)/html
183        $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/EXSLT
184        -@INSTALL@ -m 0644 $(srcdir)/EXSLT/*.html $(DESTDIR)$(TARGET_DIR)/EXSLT
185        $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/tutorial
186        -@INSTALL@ -m 0644 $(srcdir)/tutorial/* $(DESTDIR)$(TARGET_DIR)/tutorial
187
188dist-hook:
189        (cd $(srcdir) ; tar cvf - *.1 *.html site.xsl news.xsl xsa.xsl \
190          *.gif html/*.html html/*.png tutorial/libxslt*) | \
191          (cd $(distdir); tar xf -)
192
193.PHONY : html EXSLT EXSLT/html
Note: See TracBrowser for help on using the repository browser.