From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1134 invoked by alias); 14 Feb 2007 23:58:38 -0000 Received: (qmail 1121 invoked by uid 22791); 14 Feb 2007 23:58:37 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,TW_GC X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 Feb 2007 23:58:32 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l1ENwU0k030768 for ; Wed, 14 Feb 2007 18:58:30 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l1ENwUjo005940 for ; Wed, 14 Feb 2007 18:58:30 -0500 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l1ENwTuG026336; Wed, 14 Feb 2007 18:58:29 -0500 Message-ID: <45D3A21C.70300@redhat.com> Date: Wed, 14 Feb 2007 23:58:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: tromey@redhat.com CC: frysk Subject: Re: .DEFAULT: rule References: <45D361E0.6040703@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00132.txt.bz2 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 >