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