Re: Jam with Windows 95/98
David Turner <david.turner <at> freetype.org>
2001-03-02 19:32:30 GMT
Arnt Gulbrandsen a écrit :
> David Turner <david.turner <at> freetype.org>
> > PS: On a related note, has anyone considered the ability to automatically
> > generate Makefiles from Jam ? I know, I know, it's really a strange
> > proposal
> Fairly easily done, if all you want is the thing I anticipate wanting.
> Say, a thirty-line perl hack.
> 1. Run jam clean, taking note of the commands executed.
> 2. touch every file.
> 3. Run jam -v, taking note of all commands executed.
> 4. Write a Makefile with two targets: 'clean' that does what jam did
> during 'jam clean' and removes all files created during the 'jam -v',
> and 'all' that depends on every file whose atime changed during the
> 'jam -v', and whose commands are all the commands jam executed during
> 'jam -v'.
> Evil? Yes. But it'll produce a working makefile, enough that people who
> don't have jam can compile the thing.
Well, I was thinking about generating the Makefiles from Jam itself.
Given that it knows all about dependencies, and that it has pretty good
string manipulation routines, it shouldn't be that hard..
(Also, relying on Perl or Python on the host isn't something I really