1 | ## Process this file with automake to produce Makefile.in |
---|
2 | EXTRA_DIST = \ |
---|
3 | libxslt-api.xml \ |
---|
4 | libexslt-api.xml \ |
---|
5 | libxslt-decl.txt \ |
---|
6 | xsltproc.xml \ |
---|
7 | apibuild.py |
---|
8 | |
---|
9 | # The name of the module. |
---|
10 | DOC_MODULE=libxslt-$(VERSION) |
---|
11 | |
---|
12 | # The top-level SGML file. |
---|
13 | DOC_MAIN_SGML_FILE=libxslt.sgml |
---|
14 | |
---|
15 | # The directory containing the source code (if it contains documentation). |
---|
16 | DOC_SOURCE_DIR=.. |
---|
17 | |
---|
18 | HTML_DIR=$(datadir)/doc |
---|
19 | |
---|
20 | TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/html |
---|
21 | PAGES= API.html bugs.html contribs.html docs.html downloads.html \ |
---|
22 | help.html index.html intro.html news.html xsltproc2.html FAQ.html |
---|
23 | APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \ |
---|
24 | APIsymbols.html APIchunk0.html |
---|
25 | |
---|
26 | man_MANS = xsltproc.1 |
---|
27 | |
---|
28 | all : $(PAGES) |
---|
29 | |
---|
30 | web: $(PAGES) $(APIPAGES) |
---|
31 | |
---|
32 | $(PAGES): $(srcdir)/xslt.html $(srcdir)/site.xsl |
---|
33 | -@(if [ -x $(bindir)/xsltproc ] ; then \ |
---|
34 | $(bindir)/xsltproc --html $(srcdir)/site.xsl $(srcdir)/xslt.html > index.html ; fi ) |
---|
35 | |
---|
36 | $(APIPAGES): libxslt-refs.xml site.xsl api.xsl |
---|
37 | -@(if [ -x $(bindir)/xsltproc ] ; then \ |
---|
38 | $(bindir)/xsltproc --html $(srcdir)/api.xsl $(srcdir)/xslt.html ; fi ); |
---|
39 | |
---|
40 | scan: |
---|
41 | -gtkdoc-scan --module=libxslt --source-dir=$(DOC_SOURCE_DIR)/libxslt --ignore-headers="acconfig.h config.h win32config.h" |
---|
42 | # gtkdoc-scan --module=libexslt --source-dir=$(DOC_SOURCE_DIR)/libexslt --ignore-headers="acconfig.h config.h win32config.h" |
---|
43 | |
---|
44 | templates: scan |
---|
45 | -gtkdoc-mktmpl --module=libxslt |
---|
46 | # gtkdoc-mktmpl --module=libexslt |
---|
47 | |
---|
48 | sgml: |
---|
49 | -gtkdoc-mkdb --module=libxslt --source-dir=$(DOC_SOURCE_DIR)/libxslt |
---|
50 | # gtkdoc-mkdb --module=libxslt --source-dir=$(DOC_SOURCE_DIR)/libexslt |
---|
51 | |
---|
52 | html: |
---|
53 | if ! test -d html ; then mkdir html ; fi |
---|
54 | -cd html && gtkdoc-mkhtml libxslt ../$(DOC_MAIN_SGML_FILE) |
---|
55 | |
---|
56 | xml: sgml |
---|
57 | if test -d xml ; then rm xml/* ; else mkdir xml ; fi |
---|
58 | -@(for s in sgml/*.sgml ; do name=`basename $$s .sgml` ; \ |
---|
59 | xmllint --sgml $$s > xml/"$$name".xml ; done) |
---|
60 | |
---|
61 | libxslt-api.xml libexslt-api.xml: apibuild.py ../libxslt/*.h ../libxslt/*.c ../libexslt/*.h ../libexslt/*.c |
---|
62 | -(./apibuild.py) |
---|
63 | |
---|
64 | api: libxslt-api.xml libxslt-refs.xml |
---|
65 | |
---|
66 | clean-local: |
---|
67 | rm -f *~ *.bak *.hierarchy *.signals *-unused.txt |
---|
68 | |
---|
69 | maintainer-clean-local: clean |
---|
70 | rm -rf sgml html libxslt-decl-list.txt libxslt-decl.txt |
---|
71 | |
---|
72 | libxslt-decl-list.txt : templates |
---|
73 | |
---|
74 | libxslt-sections.txt : scan |
---|
75 | cp libxslt-decl-list.txt libxslt-sections.txt |
---|
76 | |
---|
77 | rebuild: libxslt-sections.txt templates sgml html |
---|
78 | |
---|
79 | install-data-local: |
---|
80 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) |
---|
81 | -@INSTALL@ -m 0644 $(srcdir)/*.html $(DESTDIR)$(TARGET_DIR) |
---|
82 | -@INSTALL@ -m 0644 $(srcdir)/*.gif $(DESTDIR)$(TARGET_DIR) |
---|
83 | -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR) |
---|
84 | -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) |
---|
85 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/tutorial |
---|
86 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/* $(DESTDIR)$(TARGET_DIR)/tutorial |
---|
87 | -(cd $(DESTDIR); gtkdoc-fixxref --module=libxslt --html-dir=$(HTML_DIR)) |
---|
88 | |
---|
89 | dist-hook: |
---|
90 | (cd $(srcdir) ; tar cvf - *.1 *.html site.xsl *.gif html/*.html html/*.sgml tutorial/libxslt*) | (cd $(distdir); tar xf -) |
---|
91 | |
---|
92 | .PHONY : html sgml templates scan |
---|