Angus Leeming <[EMAIL PROTECTED]> writes:
| Attached is a first stab at getting the generation of those form_*.[Ch] files
| from the .fd ones again. Currently all is horribly broken if the build dir
| and src dir are different.
Because this:
updatesrc: test
for fil in *.C *.h; \
do cmp -s $$fil ../$$fil || mv $$fil ..; \
done
rm -f *.[hHcC] *.bak
.fd.C:
${SHELL} ./fdfix.sh $<
Does not take $(srcdir) and $(builddir) into account.
Instead of changing how fd->C files are generated and compiled, I'd
like a lot better at this stage to just insert the $(srcdir) and
$(builddir) where approp.
It is even possible that we should just disallow fd->C generation when
srcdir != builddir.
| I decided that since the .[Ch] files are generated, they should go in the
| build tree.
>
| I don't know how to get the xforms/Makefile.am to use them however. Pointers
| welcome.
>
| It'd be good if we could through out the "updatesrc" option in the
| xforms/forms/Makefile.am and just run make normally. To do this, we need to
| ascertain whether $srcdir/form_xxx.fd is newer than $builddir/form_xxx.[Ch].
| Again, pointers would be good ;-)
Make solves this automatically for you.
This is 1.3 stuff.
| If we can do all this, then we can remove the xforms/form_xxx.[Ch] files from
| the repository.
Let's do that in 1.3 then.
--
Lgb