Diff of /Makefile [5d2657] .. [59c5f3] Maximize Restore

  Switch to unified view

a/Makefile b/Makefile
...
...
25
    ref_c_filenames.xml ref_c_packages.xml ref_c_printer.xml        \
25
    ref_c_filenames.xml ref_c_packages.xml ref_c_printer.xml        \
26
    ref_c_system_construction.xml ref_c_environment.xml         \
26
    ref_c_system_construction.xml ref_c_environment.xml         \
27
    ref_c_objects.xml ref_c_conditions.xml ref_c_structures.xml     \
27
    ref_c_objects.xml ref_c_conditions.xml ref_c_structures.xml     \
28
    ref_signals.xmlf ref_c_arrays.xml $(GEN_XMLFILES)
28
    ref_signals.xmlf ref_c_arrays.xml $(GEN_XMLFILES)
29
29
30
XSLFILES= xsl/customization.xml xsl/lispfunc.xml xsl/refentryintoc.xml
30
HTML_XSLFILES= xsl/customization.xml xsl/lispfunc.xml xsl/refentryintoc.xml
31
PDF_XSLFILES= xsl/customization.xml xsl/lispfunc-po.xml
31
32
32
all: html/ecl.css
33
all: html/ecl.css
33
34
34
html/index.html: $(XMLFILES) $(XSLFILES) xsl/add_indexterm.xml
35
ecl2.xml: $(XMLFILES) xsl/add_indexterm.xml
35
    @test -d html || mkdir html
36
    @test -d html || mkdir html
36
    $(XSLTPROC) --xinclude xsl/add_indexterm.xml ecl.xml | \
37
    $(XSLTPROC) --xinclude xsl/add_indexterm.xml ecl.xml | \
37
    sed 's, xmlns="",,g' > html/ecl2.xml
38
    sed 's, xmlns="",,g' > ecl2.xml
39
html/index.html: ecl2.xml $(HTML_XSLFILES)
38
    $(XMLTO) -vv --skip-validation $(subst xsl, -m xsl,$(XSLFILES)) -o html html html/ecl2.xml
40
    $(XMLTO) -vv --skip-validation $(subst xsl, -m xsl,$(HTML_XSLFILES)) -o html html ecl2.xml
39
  rm html/ecl2.xml
40
    cp ecl.css html/
41
    cp ecl.css html/
41
html/ecl.css: ecl.css html/index.html
42
html/ecl.css: ecl.css html/index.html
42
    cp ecl.css html/
43
    cp ecl.css html/
43
    @test -d html/figures || mkdir html/figures
44
    @test -d html/figures || mkdir html/figures
44
    cp figures/*.png html/figures/
45
    cp figures/*.png html/figures/
45
46
ecl.pdf: ecl2.xml $(PDF_XSLFILES)
46
ecl.pdf: $(XMLFILES) $(XSLFILES)
47
  $(XMLTO) -vv --skip-validation $(subst xsl, -m xsl,$(PDF_XSLFILES)) \
47
    $(XMLTO) -o $@ pdf ecl.xml
48
       -o $@ pdf ecl2.xml
48
49
49
tmp/ecl.ent: ecl.ent
50
tmp/ecl.ent: ecl.ent
50
    cp $< $@
51
    cp $< $@
51
52
52
tmp/COPYING.GFDL.xml: COPYING.GFDL Makefile
53
tmp/COPYING.GFDL.xml: COPYING.GFDL Makefile
...
...
56
57
57
jing:
58
jing:
58
    jing -t -i /usr/local/Cellar/docbook/5.0/docbook/xml/5.0/rng/docbookxi.rng ecl.xml
59
    jing -t -i /usr/local/Cellar/docbook/5.0/docbook/xml/5.0/rng/docbookxi.rng ecl.xml
59
60
60
clean:
61
clean:
61
    rm -f tmp/ecl.ent $(GEN_XMLFILES) html/*.html
62
    rm -f tmp/ecl.ent ecl2.xml $(GEN_XMLFILES) html/*.html