httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrik Grip-Jansson <patr...@gnulix.org>
Subject RE: Swedish xml translation
Date Sat, 09 Mar 2002 02:23:04 GMT
On Fri, 8 Mar 2002, Joshua Slive wrote:

> The problem with make is that we would need to list each xml file in the
> makefile.  We're trying to reduce that kind of duplication.

No, you don't. How about;
----------------------------------------------------
.SUFFIXES : .html .xml

vpath = ../mod/

xmlfiles  := ../mod/*.xml
htmlfiles := $(patsubst %.xml,%.html,$(xmlfiles))

all: $(htmlfiles)

%.html : %.xml
	XalanTransform $< ./manual.xsl $@
----------------------------------------------------

Works great - well, at least as proof-of-concept :-)

-- 
.---------------------.
| Patrik Grip-Jansson |
| Ringen 4B           |    .--------------------.
| 78444 Borlänge   .--'----' http://gnulix.com/ `---------.
| Sweden           |  All views and opinions are my own,  |
`------------------| PH:+46(0)24382823 PW:+46(0)707354360 |
                   `--------------------------------------'


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message