From unknown Sun Aug 17 10:26:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8326: can't override dvi: target, or others with -local Resent-From: karl@freefriends.org (Karl Berry) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 23 Mar 2011 00:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8326 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 8326@debbugs.gnu.org X-Debbugs-Original-To: bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13008397327586 (code B ref -1); Wed, 23 Mar 2011 00:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Mar 2011 00:22:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2Bpz-0001yJ-BY for submit@debbugs.gnu.org; Tue, 22 Mar 2011 20:22:11 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2Bpx-0001y8-5T for submit@debbugs.gnu.org; Tue, 22 Mar 2011 20:22:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2Bpq-0004wA-O8 for submit@debbugs.gnu.org; Tue, 22 Mar 2011 20:22:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:36921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2Bpq-0004w6-Lc for submit@debbugs.gnu.org; Tue, 22 Mar 2011 20:22:02 -0400 Received: from [140.186.70.92] (port=56753 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2Bpp-0007cN-F1 for bug-automake@gnu.org; Tue, 22 Mar 2011 20:22:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2Bpo-0004vu-DC for bug-automake@gnu.org; Tue, 22 Mar 2011 20:22:01 -0400 Received: from b0.f7.net ([66.148.120.132]:35771 helo=freefriends.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2Bpo-0004vm-6G for bug-automake@gnu.org; Tue, 22 Mar 2011 20:22:00 -0400 X-Envelope-From: karl@freefriends.org X-Envelope-To: Received: from freefriends.org (sls-af11p1 [127.0.0.1]) by freefriends.org (8.14.4/8.14.4) with ESMTP id p2N0Lu9o011099 for ; Tue, 22 Mar 2011 20:21:59 -0400 Received: (from nobody@localhost) by freefriends.org (8.14.4/8.14.4/submit) id p2N0LurC011098; Wed, 23 Mar 2011 00:21:56 GMT Date: Wed, 23 Mar 2011 00:21:56 GMT Message-Id: <201103230021.p2N0LurC011098@freefriends.org> X-Authentication-Warning: localhost.localdomain: nobody set sender to karl@freefriends.org using -f From: karl@freefriends.org (Karl Berry) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) Aside from the discussion in #8289 about alternatives to the hardwired make dvi being run by make distcheck, there seems to be another problem, namely putting a simple dvi: in a Makefile.am doesn't work to override the default rule. I get an error like this: doc/Makefile.am:12: user target `dvi' defined here... automake: ... overrides Automake target `dvi' defined here doc/Makefile.am:12: consider using dvi-local instead of dvi Looking for the code that's enforcing this, I see in Rule.pm around line this comment: # -am targets listed in %dependencies support a -local # variant. If the user tries to override TARGET or # TARGET-am for which there exists a -local variant, # just tell the user to use it. But dvi-local does not suffice for the case at hand; that is, it can't be used to avoid rebuilding the dvi, as far as I can see. Certainly merely adding dvi-local: does nothing in particular. Is there another way? (Aside: I'm just curious, what can dvi-local actually be used for? If there's a known use for it, I suggest mentioning it in the doc.) As far as I can see, this behavior contradicts the documentation (node: Extending), which simply says: * As far as rules are concerned, a user-defined rule overrides any `automake'-defined rule for the same target. So my report is to suggest implementing that :). Perhaps there should be a warning in case of such overrides, but a fatal "you can't do that"? Else the doc should be changed. At any rate, if there's a workaround to get a clean make distcheck with a PDF-only manual with the currently released automake, we'd like to know. Thanks, Karl From unknown Sun Aug 17 10:26:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8326: can't override dvi: target, or others with -local Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 23 Mar 2011 20:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8326 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: Karl Berry Cc: 8326@debbugs.gnu.org Received: via spool by 8326-submit@debbugs.gnu.org id=B8326.130091215622125 (code B ref 8326); Wed, 23 Mar 2011 20:30:03 +0000 Received: (at 8326) by debbugs.gnu.org; 23 Mar 2011 20:29:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2Ug8-0005ko-Ef for submit@debbugs.gnu.org; Wed, 23 Mar 2011 16:29:16 -0400 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2Ug5-0005kd-Ik for 8326@debbugs.gnu.org; Wed, 23 Mar 2011 16:29:14 -0400 Received: by ewy19 with SMTP id 19so2241975ewy.3 for <8326@debbugs.gnu.org>; Wed, 23 Mar 2011 13:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=3UnXdwP9/v0t6rJM32Iy/YOpU5qozObFyPhyvETbMs4=; b=u4i//KQMT+SgKYNTR/LsKBjZiwcsrtzviHHXsYGHh+12iN0ek/fSsZVbSRF0nvU+H6 zKLtTFAy+LnHhZpReVJmeyozmODfooyt6eOXkox2ddiGqyPmQgieUbsJgoq73Ctst1Wd v1ZcsjgatEiA837pOQ+qDukO+wzi7xZF6Li6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=vMsA9JX15xgnv/iWujjOXPUDyPGxMf+iYEnpNIWbpzu0ly+FeF+8sBUkZGRSdRD4JL TA7/QjG7cB6uWR3B8Wdz/ASFdMWH6nAN0DDkbckq7oj0NOgwyQscyMT/3rD+HhOCBov9 6fBW6v37mASJXITF1WjOxFoMatAVY6hlDmHUE= Received: by 10.14.133.143 with SMTP id q15mr2728295eei.190.1300912147720; Wed, 23 Mar 2011 13:29:07 -0700 (PDT) Received: from bigio.localnet (host54-103-dynamic.0-87-r.retail.telecomitalia.it [87.0.103.54]) by mx.google.com with ESMTPS id b52sm3954885eei.8.2011.03.23.13.29.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Mar 2011 13:29:06 -0700 (PDT) From: Stefano Lattarini Date: Wed, 23 Mar 2011 21:28:52 +0100 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: <201103230021.p2N0LurC011098@freefriends.org> In-Reply-To: <201103230021.p2N0LurC011098@freefriends.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201103232128.53270.stefano.lattarini@gmail.com> X-Spam-Score: -4.8 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) On Wednesday 23 March 2011, Karl Berry wrote: > Aside from the discussion in #8289 about alternatives to the hardwired > make dvi being run by make distcheck, there seems to be another problem, > namely putting a simple > dvi: > in a Makefile.am doesn't work to override the default rule. I get an > error like this: > > doc/Makefile.am:12: user target `dvi' defined here... > automake: ... overrides Automake target `dvi' defined here > doc/Makefile.am:12: consider using dvi-local instead of dvi > This happens almost surely because you have `override' warnings enabled, and Automake is treating warnings as errors (do you have `-Wall -Werror' in AM_INIT_AUTOMAKE, maybe?). If you want to override an Automake-provided target without complaints from Automake, you must disable the `override' warnings, e.g., by using "AUTOMAKE_OPTIONS = -Wno-override" in the affected Makefile.am (or by not using `-Wall' in AM_INIT_AUTOMAKE, even if I would discourage this). > Looking for the code that's enforcing this, I see in Rule.pm around line > this comment: > # -am targets listed in %dependencies support a -local > # variant. If the user tries to override TARGET or > # TARGET-am for which there exists a -local variant, > # just tell the user to use it. > > But dvi-local does not suffice for the case at hand; that is, it can't > be used to avoid rebuilding the dvi, as far as I can see. Certainly > merely adding dvi-local: does nothing in particular. Is there another > way? > See above. > (Aside: I'm just curious, what can dvi-local actually be used for? > If there's a known use for it, I suggest mentioning it in the doc.) > If there is a known use, I don't know it; sorry! > As far as I can see, this behavior contradicts the documentation (node: > Extending), which simply says: > > * As far as rules are concerned, a user-defined rule overrides any > `automake'-defined rule for the same target. > > So my report is to suggest implementing that :). > That's already implemented (well, almost -- it's not true for few special targets, like `all' and `check'; maybe we should fix this inconsistency?) > Perhaps there should be a warning in case of such overrides, > See above. > but a fatal "you can't do that"? > You must have enabled `-Werror' somewhere... could you please confirm? Otherwise we have a bug. > Else the doc should be changed. > > At any rate, if there's a workaround to get a clean make distcheck with > a PDF-only manual with the currently released automake, we'd like to know. > Adding: AUTOMAKE_OPTIONS = -Wno-override dvi: to the relevant Makefile.am should be enough as a workaround (even if not particularly clean). > Thanks, > Karl > > HTH, Stefano From unknown Sun Aug 17 10:26:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8326: can't override dvi: target, or others with -local References: <201103230021.p2N0LurC011098@freefriends.org> Resent-From: karl@freefriends.org (Karl Berry) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 23 Mar 2011 22:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8326 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: stefano.lattarini@gmail.com Cc: 8326@debbugs.gnu.org Received: via spool by 8326-submit@debbugs.gnu.org id=B8326.130091856431303 (code B ref 8326); Wed, 23 Mar 2011 22:17:02 +0000 Received: (at 8326) by debbugs.gnu.org; 23 Mar 2011 22:16:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2WLT-00088q-U7 for submit@debbugs.gnu.org; Wed, 23 Mar 2011 18:16:04 -0400 Received: from b0.f7.net ([66.148.120.132] helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2WLR-00088J-W5 for 8326@debbugs.gnu.org; Wed, 23 Mar 2011 18:16:02 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (sls-af11p1 [127.0.0.1]) by freefriends.org (8.14.4/8.14.4) with ESMTP id p2NMFqKi030671; Wed, 23 Mar 2011 18:15:55 -0400 Received: (from nobody@localhost) by freefriends.org (8.14.4/8.14.4/submit) id p2NMFqPw030670; Wed, 23 Mar 2011 22:15:52 GMT Date: Wed, 23 Mar 2011 22:15:52 GMT Message-Id: <201103232215.p2NMFqPw030670@freefriends.org> X-Authentication-Warning: localhost.localdomain: nobody set sender to karl@freefriends.org using -f From: karl@freefriends.org (Karl Berry) In-Reply-To: <201103232128.53270.stefano.lattarini@gmail.com> X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) do you have `-Wall -Werror' in AM_INIT_AUTOMAKE, maybe? You are absolutely right. It did not occur to me to look for that. Sorry for the noise. Feel free to close this one. Thanks much for all the hints. From unknown Sun Aug 17 10:26:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: karl@freefriends.org (Karl Berry) Subject: bug#8326: closed (Re: bug#8326: can't override dvi: target, or others with -local) Message-ID: References: <20110329100722.GC1536@gmx.de> <201103230021.p2N0LurC011098@freefriends.org> X-Gnu-PR-Message: they-closed 8326 X-Gnu-PR-Package: automake Reply-To: 8326@debbugs.gnu.org Date: Tue, 29 Mar 2011 10:08:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1301393282-8176-1" This is a multi-part message in MIME format... ------------=_1301393282-8176-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8326: can't override dvi: target, or others with -local which was filed against the automake package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8326@debbugs.gnu.org. --=20 8326: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8326 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1301393282-8176-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 8326-done) by debbugs.gnu.org; 29 Mar 2011 10:07:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4Vpl-000279-Uc for submit@debbugs.gnu.org; Tue, 29 Mar 2011 06:07:34 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Q4Vpj-00026v-Bn for 8326-done@debbugs.gnu.org; Tue, 29 Mar 2011 06:07:32 -0400 Received: (qmail invoked by alias); 29 Mar 2011 10:07:24 -0000 Received: from xdsl-89-0-172-120.netcologne.de (EHLO localhost.localdomain) [89.0.172.120] by mail.gmx.net (mp038) with SMTP; 29 Mar 2011 12:07:24 +0200 X-Authenticated: #13673931 X-Provags-ID: V01U2FsdGVkX1+4S9F567O4GzJ3/7mbquNEK6zueV3UrHd0LeVTvu hQrNJD+1CkRT2A Received: from ralf by localhost.localdomain with local (Exim 4.72) (envelope-from ) id 1Q4Vpa-0000UX-P1; Tue, 29 Mar 2011 12:07:22 +0200 Date: Tue, 29 Mar 2011 12:07:22 +0200 From: Ralf Wildenhues To: Stefano Lattarini Subject: Re: bug#8326: can't override dvi: target, or others with -local Message-ID: <20110329100722.GC1536@gmx.de> References: <201103230021.p2N0LurC011098@freefriends.org> <201103232128.53270.stefano.lattarini@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103232128.53270.stefano.lattarini@gmail.com> Organization: Institute for Numerical Simulation, University of Bonn User-Agent: Mutt/1.5.20 (2010-08-04) X-Y-GMX-Trusted: 0 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 8326-done Cc: 8326-done@debbugs.gnu.org, Karl Berry X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Hi Karl, Stefano, * Stefano Lattarini wrote on Wed, Mar 23, 2011 at 09:28:52PM CET: > On Wednesday 23 March 2011, Karl Berry wrote: > > (Aside: I'm just curious, what can dvi-local actually be used for? > > If there's a known use for it, I suggest mentioning it in the doc.) > > > If there is a known use, I don't know it; sorry! Well, say I have a LaTeX document and my own rules to build it. I want DVI output of it to be available through 'make dvi', in addition to Texinfo sources that also produce some DVI output (through the automake- generated rules). Then I write dvi-local: foo.dvi foo.dvi: ... ... Generally, the *-local rules are the default way to extend targets for which automake provides rules. They all work the same way. Nothing fancy here, but definitely useful. > That's already implemented (well, almost -- it's not true for few special > targets, like `all' and `check'; maybe we should fix this inconsistency?) Yes; I actually have worked on these two targets (after it came up in the gnu make discussions with Xan Lopez elsewhere) but am not done yet. They are a bit nontrivial to fix. I'm closing this bug as it seems to have been cleared up. Thanks, Ralf ------------=_1301393282-8176-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Mar 2011 00:22:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2Bpz-0001yJ-BY for submit@debbugs.gnu.org; Tue, 22 Mar 2011 20:22:11 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2Bpx-0001y8-5T for submit@debbugs.gnu.org; Tue, 22 Mar 2011 20:22:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2Bpq-0004wA-O8 for submit@debbugs.gnu.org; Tue, 22 Mar 2011 20:22:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:36921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2Bpq-0004w6-Lc for submit@debbugs.gnu.org; Tue, 22 Mar 2011 20:22:02 -0400 Received: from [140.186.70.92] (port=56753 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2Bpp-0007cN-F1 for bug-automake@gnu.org; Tue, 22 Mar 2011 20:22:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2Bpo-0004vu-DC for bug-automake@gnu.org; Tue, 22 Mar 2011 20:22:01 -0400 Received: from b0.f7.net ([66.148.120.132]:35771 helo=freefriends.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2Bpo-0004vm-6G for bug-automake@gnu.org; Tue, 22 Mar 2011 20:22:00 -0400 X-Envelope-From: karl@freefriends.org X-Envelope-To: Received: from freefriends.org (sls-af11p1 [127.0.0.1]) by freefriends.org (8.14.4/8.14.4) with ESMTP id p2N0Lu9o011099 for ; Tue, 22 Mar 2011 20:21:59 -0400 Received: (from nobody@localhost) by freefriends.org (8.14.4/8.14.4/submit) id p2N0LurC011098; Wed, 23 Mar 2011 00:21:56 GMT Date: Wed, 23 Mar 2011 00:21:56 GMT Message-Id: <201103230021.p2N0LurC011098@freefriends.org> X-Authentication-Warning: localhost.localdomain: nobody set sender to karl@freefriends.org using -f From: karl@freefriends.org (Karl Berry) To: bug-automake@gnu.org Subject: can't override dvi: target, or others with -local X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) Aside from the discussion in #8289 about alternatives to the hardwired make dvi being run by make distcheck, there seems to be another problem, namely putting a simple dvi: in a Makefile.am doesn't work to override the default rule. I get an error like this: doc/Makefile.am:12: user target `dvi' defined here... automake: ... overrides Automake target `dvi' defined here doc/Makefile.am:12: consider using dvi-local instead of dvi Looking for the code that's enforcing this, I see in Rule.pm around line this comment: # -am targets listed in %dependencies support a -local # variant. If the user tries to override TARGET or # TARGET-am for which there exists a -local variant, # just tell the user to use it. But dvi-local does not suffice for the case at hand; that is, it can't be used to avoid rebuilding the dvi, as far as I can see. Certainly merely adding dvi-local: does nothing in particular. Is there another way? (Aside: I'm just curious, what can dvi-local actually be used for? If there's a known use for it, I suggest mentioning it in the doc.) As far as I can see, this behavior contradicts the documentation (node: Extending), which simply says: * As far as rules are concerned, a user-defined rule overrides any `automake'-defined rule for the same target. So my report is to suggest implementing that :). Perhaps there should be a warning in case of such overrides, but a fatal "you can't do that"? Else the doc should be changed. At any rate, if there's a workaround to get a clean make distcheck with a PDF-only manual with the currently released automake, we'd like to know. Thanks, Karl ------------=_1301393282-8176-1--