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: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 3EF3C1F463 for ; Mon, 30 Sep 2019 21:53:36 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] doc: avoid redundant mkdir(1) calls Date: Mon, 30 Sep 2019 21:53:36 +0000 Message-Id: <20190930215336.27577-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: GNU make has order-only prerequisites, so use it to avoid redundant mkdir(1) calls since our homepage requires GNU make to build anyways. --- Documentation/include.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/include.mk b/Documentation/include.mk index 8501adc8..9a132962 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -125,8 +125,10 @@ gz_xdocs := $(addsuffix .gz, $(xdocs) $(xdocs_html)) rsync_xdocs := $(gz_xdocs) $(xdocs_html) $(xdocs) xdoc: $(xdocs) $(xdocs_html) -Documentation/.x/%.txt:: - @-mkdir -p $(@D) +Documentation/.x: + mkdir -p $@ + +Documentation/.x/%.txt :: | Documentation/.x $(PERL) -w Documentation/extman.perl $@ >$@+ mv $@+ $@ -- EW