From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id BCA011F487 for ; Wed, 1 Apr 2020 14:15:53 +0000 (UTC) Received: from localhost ([::1]:60934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJe9n-0003hA-5W for normalperson@yhbt.net; Wed, 01 Apr 2020 10:15:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58128) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJcms-0002Hr-PD for bug-gnulib@gnu.org; Wed, 01 Apr 2020 08:48:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJcmr-00064P-Em for bug-gnulib@gnu.org; Wed, 01 Apr 2020 08:48:06 -0400 Received: from [185.44.68.223] (port=53688 helo=void-ptr.info) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jJcmr-0005vp-6R for bug-gnulib@gnu.org; Wed, 01 Apr 2020 08:48:05 -0400 Received: from ptr by void-ptr.info with local (Exim 4.72) (envelope-from ) id 1jJcT0-0000CM-Vm; Wed, 01 Apr 2020 15:27:35 +0300 From: Petr Ovtchenkov To: bug-gnulib@gnu.org Subject: [PATCH 1/1] old-fashioned suffix rules cannot have any prerequisites Date: Wed, 1 Apr 2020 15:26:31 +0300 Message-Id: <20200401122631.696-2-ptr@void-ptr.info> X-Mailer: git-send-email 2.25.0.dirty In-Reply-To: <20200401122631.696-1-ptr@void-ptr.info> References: <20200401122631.696-1-ptr@void-ptr.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.44.68.223 X-Mailman-Approved-At: Wed, 01 Apr 2020 10:15:40 -0400 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Ovtchenkov Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" See: https://www.gnu.org/software/make/manual/html_node/Suffix-Rules.html#Suffix-Rules Suffix rules cannot have any prerequisites of their own. If they have any, they are treated as normal files with funny names, not as suffix rules. Thus, the rule: ... --- build-aux/po/Makefile.in.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-aux/po/Makefile.in.in b/build-aux/po/Makefile.in.in index e4169b338..320cef068 100644 --- a/build-aux/po/Makefile.in.in +++ b/build-aux/po/Makefile.in.in @@ -107,7 +107,7 @@ DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO)) # the .pot file. This eliminates the need to update the .po files when the # .pot file has changed, which would be troublesome if the .po files are put # under version control. -.po.gmo: $(srcdir)/$(DOMAIN).pot +%.gmo: %.po $(srcdir)/$(DOMAIN).pot @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.1po && rm -f $${lang}.1po"; \ @@ -118,7 +118,7 @@ DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO)) mv t-$${lang}.gmo $${lang}.gmo && \ rm -f $${lang}.1po -.sin.sed: +%.sed: %.sin sed -e '/^#/d' $< > t-$@ mv t-$@ $@ @@ -444,14 +444,14 @@ update-po: Makefile # General rule for creating PO files. -.nop.po-create: +%.po-create: %.nop @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. -.nop.po-update: +%.po-update: %.nop @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ -- 2.25.0.dirty