From patchwork Wed Mar 30 18:34:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 64727 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2754047lbc; Wed, 30 Mar 2016 11:34:58 -0700 (PDT) X-Received: by 10.107.33.7 with SMTP id h7mr11341468ioh.30.1459362898196; Wed, 30 Mar 2016 11:34:58 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id sa2si21695542igb.102.2016.03.30.11.34.57; Wed, 30 Mar 2016 11:34:58 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9BB1F619B9; Wed, 30 Mar 2016 18:34:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7D46D618E8; Wed, 30 Mar 2016 18:34:54 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 95796618E8; Wed, 30 Mar 2016 18:34:52 +0000 (UTC) Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by lists.linaro.org (Postfix) with ESMTPS id DDE9261720 for ; Wed, 30 Mar 2016 18:34:51 +0000 (UTC) Received: by mail-qk0-f174.google.com with SMTP id o6so23376328qkc.2 for ; Wed, 30 Mar 2016 11:34:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=A+oC1HpEtSrJ69c1ommN3gWugFH2UeZEVGY3QC1fUOI=; b=QV9P5bV1+iuZStXzLAk6R4PHpwZLR5DdBPYB4nD+XqgsGQ8NUtEW7xjJF+MUVvPAg6 7G1rp8yHZJwBRH/uAD4xNYDESM3jbLgphjTOL261KHNp75uPV0nHMz9NJc0fAqQwGr90 VbL6GgdXGzvrIzNUpNeSkgqNhX7vIMWJyO/ivLidy0brOUg7B/s7dpxBvarc8w0UwrXR lS8USBKoFQmGeTv/1nKrHq/uc0rOtdNlvKOnnVQTu0+KolktZE8JRh0obTIM3DXLDezQ uZ6PUBGmPsast0YtFi4wO02MSth5h6b676VG9pxC23902RWAffuVjalbScZzUGaxA+zN GbKw== X-Gm-Message-State: AD7BkJJQA9LSY7JoSA3o9MM3WLaejx1JH1z1abk8uEzS1bAEsHRGfdgd4nj1CTPDgeUZc8nasQw= X-Received: by 10.55.20.37 with SMTP id e37mr11948853qkh.8.1459362891655; Wed, 30 Mar 2016 11:34:51 -0700 (PDT) Received: from localhost.localdomain (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id o77sm2338165qgd.37.2016.03.30.11.34.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Mar 2016 11:34:51 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 30 Mar 2016 14:34:48 -0400 Message-Id: <1459362889-31131-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [PATCH 1/2] doc: rebuild only when required X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Mike Holmes Reviewed-by: Christophe Milard --- doc/Makefile.inc | 3 +++ doc/implementers-guide/Makefile.am | 3 +-- doc/process-guide/Makefile.am | 2 -- doc/users-guide/Makefile.am | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/Makefile.inc b/doc/Makefile.inc index 86b2427..c0b641e 100644 --- a/doc/Makefile.inc +++ b/doc/Makefile.inc @@ -6,4 +6,7 @@ VPATH=$(top_builddir)/doc/images .gv.svg: dot -T svg $^ -o $@ +.adoc.html: + asciidoc $(ASCIIDOC_FLAGS) --out-file=$@ $< + ASCIIDOC_FLAGS =-a data-uri -b html5 -a icons -a toc2 -a max-width=55em diff --git a/doc/implementers-guide/Makefile.am b/doc/implementers-guide/Makefile.am index 6a614ce..ec9f924 100644 --- a/doc/implementers-guide/Makefile.am +++ b/doc/implementers-guide/Makefile.am @@ -5,8 +5,7 @@ TARGET = implementers-guide.html EXTRA_DIST = $(SRC) -all-local: $(SRC) - asciidoc $(ASCIIDOC_FLAGS) --out-file=$(TARGET) $(SRC) +$(TARGET): $(SRC) clean-local: rm -f $(builddir)/$(TARGET) diff --git a/doc/process-guide/Makefile.am b/doc/process-guide/Makefile.am index efef04d..f9e12d2 100644 --- a/doc/process-guide/Makefile.am +++ b/doc/process-guide/Makefile.am @@ -13,7 +13,5 @@ clean-local: release-guide.html: $(top_srcdir)/doc/process-guide/release-guide.adoc \ $(top_srcdir)/doc/images/simple_release_git.svg \ $(top_srcdir)/doc/images/release_git.svg - asciidoc $(ASCIIDOC_FLAGS) --out-file=$@ $< bylaws-guide.html: $(top_srcdir)/doc/process-guide/bylaws-guide.adoc - asciidoc $(ASCIIDOC_FLAGS) --out-file=$@ $< diff --git a/doc/users-guide/Makefile.am b/doc/users-guide/Makefile.am index 3f8ce3d..4f9a364 100644 --- a/doc/users-guide/Makefile.am +++ b/doc/users-guide/Makefile.am @@ -19,8 +19,7 @@ endif EXTRA_DIST = $(SRC) $(IMAGES) -all-local: $(SRC) - asciidoc $(ASCIIDOC_FLAGS) --out-file=$(TARGET) $(SRC) +$(TARGET): $(SRC) clean-local: rm -f $(builddir)/$(TARGET)