1 |
OUTDIR ?= ../html |
2 |
XMLFILE ?= jsampler.xml |
3 |
XSLFILE ?= html.xsl |
4 |
XSLCHUNKEDFILE ?= html-chunked.xsl |
5 |
HTMLFILE ?= ../html/jsampler.html |
6 |
CSSFILE ?= jsampler.css |
7 |
XSLTPROC ?= xsltproc |
8 |
|
9 |
html-chunked:: clean |
10 |
# creating output directory |
11 |
-@mkdir $(OUTDIR) |
12 |
# generating html |
13 |
$(XSLTPROC) -stringparam base.dir $(OUTDIR)/ -stringparam chunk.section.depth 1 $(XSLCHUNKEDFILE) $(XMLFILE) |
14 |
# copy css file to output directory |
15 |
-@cp $(CSSFILE) $(OUTDIR)/$(CSSFILE) |
16 |
# copy the image files to the output directory |
17 |
-@cp -r images $(OUTDIR)/images |
18 |
# copy the license files to the output directory |
19 |
-@cp ../../licenses/gfdl.html $(OUTDIR) |
20 |
|
21 |
html:: clean |
22 |
# creating output directory |
23 |
-@mkdir $(OUTDIR) |
24 |
# generating html |
25 |
$(XSLTPROC) -o $(HTMLFILE) $(XSLFILE) $(XMLFILE) |
26 |
# copy css file to output directory |
27 |
-@cp $(CSSFILE) $(OUTDIR)/$(CSSFILE) |
28 |
# copy the image files to the output directory |
29 |
-@cp -r images $(OUTDIR)/images |
30 |
# copy the license files to the output directory |
31 |
-@cp ../../licenses/gfdl.html $(OUTDIR) |
32 |
|
33 |
clean:: |
34 |
@rm -rf $(OUTDIR) |
35 |
|