Re: [AD] doc building patterns (was: Release Candidate 3) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sun, Dec 09, 2001 at 01:50:06AM +0100, Grzegorz Adam Hankiewicz wrote:
> That's exactly the sintax, but for all I tried it didn't work. Most
> importantly, I couldn't find out what where pmake's substitutes of $@
> and $<, so I could translate the basic operation block from...
>
> path/%.txt: src/%._tx $(MAKEDOC)
> $(MAKEDOC) -ascii $@ $<
>
> ...to...
>
> .txt._tx:
> $(MAKEDOC) -ascii <output:put_something_here> <input:and_here>
>
> Aparently such rules don't contain paths, which must be indicated
> with something else like VPATH, but that information eluded me too.
I got it to work with GNU Make, still using $< and $@. There
are two things wrong with what you put, based on what I tested:
1) you need .SUFFIXES: .txt (or is it the ._tx that goes there?)
2) it appears to only work for single-character extensions!
Pah.
George
--
Random project update:
22/06/2000: AllegroGL documentation: http://allegrogl.sourceforge.net/
See under `Documentation' for the AllegroGL Reference Manual in
various formats.