This is the mail archive of the
rhug-rhats@sources.redhat.com
mailing list for the RHUG project.
Re: [tromey@redhat.com (Tom Tromey)] FAIL: rhug build on Sat May 3 03:26:43 MDT 2003
Anthony Green wrote:
> I got it. I am building outside of my srcdir. I think this needs a
> "$(srcdir)/" or two somewhere...
>
> .resource-stamp: $(XERCES_PROP_S)
> @for x in $(XERCES_PROP_S); do \
> if [ ! -f $$x.o -o $$x -nt $$x.o ]; then \
> $(top_srcdir)/mkinstalldirs `dirname $$x`; \
> cp -a $$x $$x.java; \
> echo $(LTGCJCOMPILE) -o $$x.o -c $$x \
> -Wc,--resource,`echo $$x | sed "s/.*\/src\///g"`; \
> $(LTGCJCOMPILE) -o $$x.o -c $$x.java \
> -Wc,--resource,`echo $$x | sed "s/.*\/src\///g"`; \
> rm -f $$x.java; \
> fi; \
> done
> @touch $@
>
> Maybe just "cp -a $(srcdir)/$$x $$.java; \"? I don't understand the
> "[ ! -f ... " etc part. Does this need a $(srcdir) as well?
The [ ! -f $$x.o -o $$x -nt $$x.o ] is basically to make it only build
the .o file when it isn't there or the .properties file is newer than
it (like what make should be doing).
Basically, I think that every $$x.o and $$x.java need a $(srcdir), but
$$x on its own does not.
Gary