This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Re: .DEFAULT: rule
Tom,
As in the contents of the .Po file? Reads gcc man page, the -MP
option. This is a typical .Po file:
frysk/proc/Id.o: ../../frysk/frysk-core/frysk/proc/Id.java \
../frysk-imports/jline.jar ../frysk-imports/antlr.jar \
../frysk-imports/junit.jar ../frysk-imports/getopt.jar \
../frysk-imports/jdom.jar ../frysk-imports/cdtparser.jar \
/usr/share/java/libgcj-4.1.1.jar
below you'll see the rule being used to generate it (had to rewrite
automake's to to work around gcj bugs). It includes -MP option to
generate those phony rules, but they are not there.
Andrew
# Given a .java file convert it to a .o file.
# XXX: GCJ has a bug where it totally scrambles nested classes with
# identical names. Reject any code with duplicate class names.
# XXX: GCJ has a bug where, when given a -Werror fail, it still exits
# with success. Hack around this by saving the message in a log file
# and then checking that it is empty.
.java.o:
dups=`$(JV_SCAN) --list-class $< \
| tr '[ ]' '[\n]' \
| sed -n -e 's,^.*$$\([A-Z]\),\1,p' \
| sort | uniq -d` ; \
if test x"$$dups" != x ; then echo "Duplicate class names tickle
a GCJ bug: $$dups" ; exit 1 ; fi
depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \
if $(GCJCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<
2>&1 | tee $*.log && test ! -s $*.log ; \
then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f
"$$depbase.Tpo"; exit 1; fi
rm -f $*.log
The dependency file ought to contain dummy targets for all the headers.
See the automake dependency tracking white paper (well, used to be a
white paper, now moved into the manual)
http://sourceware.org/automake/automake.html#Dependency-Tracking-Evolution
If you aren't seeing these dummy targets, something is wrong.
Tom