Create a skeletal Makefile like
the one below.
| Note |
---|
See the included Makefile-example.txt file for a
more detailed example of a real-world makefile. The
Makefile-example.txt file is the actual
makefile used to build the pages you are reading now.
|
PROC=xsltproc
STYLEDIR=../xsl
TABSTYLE=$(STYLEDIR)/tabular.xsl
STYLESHEET=$(TABSTYLE)
# Change the path in output-root to put your HTML output elsewhere
STYLEOPT= --stringparam output-root .
.PHONY : clean
all: depends.tabular
@$(MAKE) website
-include depends.tabular
autolayout.xml: layout.xml
$(PROC) --output $@ $(STYLEDIR)/autolayout.xsl $<
%.html: autolayout.xml
$(PROC) --output $@ $(STYLEOPT) $(STYLESHEET) \
$(filter-out depends.tabular,$(filter-out autolayout.xml,$^))
depends.tabular: autolayout.xml
$(PROC) --output depends.tabular $(STYLEOPT) $(STYLEDIR)/makefile-dep.xsl $<
You'll have to change the PROC setting and
the command-lines used to run the processor.