← Prev in month
← Prev in thread
Next in thread →
Next in month →
Makefile (Was Re: DOCBOOK-APPS: Generating CHM HTML Help files fromDocBook?)
Michael,
> Would you mind to show all of us your Makefile as a template.
> It might be of interest for many people here...
Sure... here it is, with the following provisos:
1. I am by no means a Makefile expert, so there may be better ways to do
what I do (and if there are, I'd love to hear them).
2. Unfortunately, I just noticed that creation of the tarballs, etc. is
still off in another script. (Translation: the next version of our
product isn't going public yet, so I haven't gotten around to updating
the Makefile. Previously I had everything in separate scripts, then
I started centralizing it all into one makefile.) I am attaching the
update-org script as well, although it obviously works just for our site.
You will also note that to create the XML file from the SGML file, I use
another file called "header.xml" which I have also attached. If you look
at it:
<?xml version="1.0"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[
you will notice that I end it with '['. I do this because the next
part of my header for both SGML and XML has a series of entity
references that I use throughout the document. If you don't use
entities, you'll want to change that header. The sed line was actually
something a sed guru in my local LUG came up with and I tweaked a bit.
I also used a pathname to the DocBook DTD because I frequently work offline
and therefore the parser cannot get to the DTD across the Internet. You
may need to change that to the appropriate path or the URL.
Have fun,
Dan
--
Dan York, Director of Training
Ph: +1-613-751-4401 Mobile: +1-613-263-4312 Fax: +1-613-564-7739
Mitel Network Corporation Network Server Solutions Group
150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/ open source, open mind
← Prev in month
← Prev in thread
Next in thread →
Next in month →