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 | 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 | EXSLT/html/index.html: EXSLT/libexslt-api.xml \ |
---|
126 | $(srcdir)/newapi.xsl |
---|
127 | -@(if [ -x $(bindir)/xsltproc ] ; then \ |
---|
128 | echo "Rebuilding the HTML pages from the EXSLT API" ; \ |
---|
129 | $(bindir)/xsltproc --nonet --output EXSLT/ \ |
---|
130 | --stringparam libname libexslt \ |
---|
131 | --stringparam dirname EXSLT/ \ |
---|
132 | --stringparam logo_base ../../ \ |
---|
133 | $(srcdir)/newapi.xsl \ |
---|
134 | EXSLT/libexslt-api.xml ; fi ); |
---|
135 | -@(if [ -x $(bindir)/xmllint ] ; then \ |
---|
136 | echo "Validating the resulting XHTML pages" ; \ |
---|
137 | $(bindir)/xmllint --nonet --valid --noout EXSLT/html/*.html ; fi ); |
---|
138 | |
---|
139 | |
---|
140 | libxslt-api.xml libxslt-refs.xml EXSLT/libexslt-api.xml \ |
---|
141 | EXSLT/libexslt-refs.xml: $(srcdir)/apibuild.py $(top_srcdir)/libxslt/*.h \ |
---|
142 | $(top_srcdir)/libxslt/*.c $(top_srcdir)/libexslt/*.h \ |
---|
143 | $(top_srcdir)/libexslt/*.c |
---|
144 | -($(srcdir)/apibuild.py) |
---|
145 | |
---|
146 | xsltproc.1: xsltproc.xml |
---|
147 | -@(xsltproc --nonet xsltproc.xml) |
---|
148 | |
---|
149 | # Note that in the following, xmllint output is piped to xsltproc |
---|
150 | search.php: $(srcdir)/api.xsl $(srcdir)/site.xsl $(srcdir)/search.templ \ |
---|
151 | $(srcdir)/search.xml $(srcdir)/search.php.inc |
---|
152 | -@(if test -x $(bindir)/xmllint -a -x $(bindir)/xsltproc; then \ |
---|
153 | echo "Rebuilding search.php" ; \ |
---|
154 | $(bindir)/xmllint --xinclude --nonet \ |
---|
155 | $(srcdir)/search.xml | \ |
---|
156 | $(bindir)/xsltproc --nonet - search.templ \ |
---|
157 | > search.php ; else \ |
---|
158 | echo "Unable to find xmllint or xsltproc in $(bindir)" ; fi) |
---|
159 | |
---|
160 | $(WIN32_DIR)/libxslt.def.src: libxslt-api.xml |
---|
161 | -@(if [ -x $(bindir)/xsltproc ] ; then \ |
---|
162 | $(bindir)/xsltproc -o $(WIN32_DIR)/libxslt.def.src \ |
---|
163 | --nonet $(WIN32_DIR)/defgen.xsl libxslt-api.xml ; fi ) |
---|
164 | |
---|
165 | $(WIN32_DIR)/libexslt.def.src: EXSLT/libexslt-api.xml |
---|
166 | -@(if [ -x $(bindir)/xsltproc ] ; then \ |
---|
167 | $(bindir)/xsltproc -o $(WIN32_DIR)/libexslt.def.src \ |
---|
168 | --nonet $(WIN32_DIR)/defgen.xsl EXSLT/libexslt-api.xml ; fi ) |
---|
169 | |
---|
170 | clean-local: |
---|
171 | rm -f *~ *.bak *.hierarchy *.signals *-unused.txt |
---|
172 | |
---|
173 | maintainer-clean-local: clean |
---|
174 | |
---|
175 | rebuild: api eapi all |
---|
176 | |
---|
177 | install-data-local: |
---|
178 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) |
---|
179 | -@INSTALL@ -m 0644 $(srcdir)/*.html $(DESTDIR)$(TARGET_DIR) |
---|
180 | -@INSTALL@ -m 0644 $(srcdir)/*.gif $(DESTDIR)$(TARGET_DIR) |
---|
181 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/html |
---|
182 | -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR)/html |
---|
183 | -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(TARGET_DIR)/html |
---|
184 | -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR)/html |
---|
185 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/EXSLT |
---|
186 | -@INSTALL@ -m 0644 $(srcdir)/EXSLT/*.html $(DESTDIR)$(TARGET_DIR)/EXSLT |
---|
187 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/tutorial |
---|
188 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/* $(DESTDIR)$(TARGET_DIR)/tutorial |
---|
189 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/tutorial2 |
---|
190 | -@INSTALL@ -m 0644 $(srcdir)/tutorial2/* $(DESTDIR)$(TARGET_DIR)/tutorial2 |
---|
191 | |
---|
192 | dist-hook: |
---|
193 | (cd $(srcdir) ; tar cvf - *.1 *.html site.xsl news.xsl xsa.xsl \ |
---|
194 | *.gif html/*.html html/*.png tutorial*/libxslt*) | \ |
---|
195 | (cd $(distdir); tar xf -) |
---|
196 | |
---|
197 | .PHONY : html EXSLT EXSLT/html |
---|