Re: Undoubtedly dumb question...
Alexander Leidinger <[email protected]> Fri, 2 Apr 2004 16:34:49 +0200
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2 Apr 2004 15:58:41 +0200 (MEST) Fritz Zaucker <[email protected]> wrote: > Hi Tia > > it's not very nice to hide your source ... others might want to profit from > it too ... I do the same, but in a different way. I just don't transfer *.wml files to the server. I don't see anything "not very nice" in this behavior. The intend of the GPL is to "protect" the source of the program/tool, but not the output (see e.g. gcc). I don't do webdesign for a living, but if I would do it for a living, I wouldn't use tools which force me to (wml doesn't force to) reveal any intermediate results. > On Fri, 2 Apr 2004, Le Secret du Mystère wrote: > > > Hello folks, > > > > Okay, my Subject line tells it all. I'm discovering > > WML, and it seems quite good for my needs. > > > > _But_ I want to "split" my input files and my output > > files into separate directories hierarcies. The way > > I'm using wmk, output .html file is put into the same > > directory as the input .wml file. > > Is there any way to tell wmk to automagically put > > files into separate directories (which will be > > Web-accessible, but the sources will not be) ? I don't use wmk, I use plain make. With make it's not a problem to use separate paths (or to copy the files to a separate path after generating the html files). With a POSIX make it's something like this (GNU make has a different syntax for templates): ---snip-- FILES!= ls *.wml RESULT= $(FILES:S/.wml/.html/g) all: $(RESULTS) .SUFFIXES: .html .wml .wml.html: @echo "Generating $(.TARGET)..." @wml -q $(WMLFLAGS) -o UNDEF+EN:$(.TARGET:Q) $(.IMPSRC:Q) @cp $(.TARGET:Q) /path/to/destination/$(.TARGET:Q) ---snip--- Bye, Alexander. -- I'm available to get hired. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 _____________________________________________________________________ Website META Language (WML) http://thewml.org User Support Mailing List [email protected] Automated List Manager [email protected]