Makefile for docs

Richard A. Johnson nixternal at ubuntu.com
Thu Aug 9 03:19:34 UTC 2007


On Wednesday 08 August 2007, Ian wrote:
[snip]
|  # Add your language file here:
|  TARGETS = mobileguide.html
|
|  XSLTPROC = /usr/bin/xsltproc
|  XSL = ubuntu.xsl
|
|  %.html: %.xml $(XSL)
|     @$(XSLTPROC) -o $@ $(XSL) $<
|
|  all: $(TARGETS)
|
|  clean:
|     @rm -f *.html

You can get rid of the XSLTPROC line and just do this instead:

all:
	xsltproc --xinclude -o /location/you/want/the/html/to/go $(XSL) \
		location/to/html

For a good example of a Makefile, check out 
https://docteam.ubuntu.com/repos/trunk/kubuntu/Makefile

Hope this helps a little.

-- 
Richard A. Johnson
nixternal at ubuntu.com
GPG Key: 0x2E2C0124
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20070808/66cd9ff7/attachment.pgp>


More information about the ubuntu-doc mailing list