From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by dpdk.org (Postfix) with ESMTP id 3BEBF1E20 for ; Thu, 6 Apr 2017 14:57:19 +0200 (CEST) Received: by mail-wr0-f169.google.com with SMTP id o21so32981205wrb.2 for ; Thu, 06 Apr 2017 05:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=F3IlzRgd5UvMwrAwQo6DqdzSohdSPW85M7WATjGeIHA=; b=kcBAJ0sLNjS775Taew8dNszj3bkcHn5Ns0dmTWr5e027iwsQ2SiUzd9ZEKdbZ/5p0t dMi4rJVXKzhN/xaRTxkff6ruY1YXFMXbSTB2lwijVMfYQ3+fNqjA1uaLvV/FgSMXTrdD F+6kDobvOOoucNJqopmSuZJNvNwRzEQ6aRJZ2EOEjB8zLFe34PX+No00GZkcT5kC5ySb mwq5V1PcTk2G+KnLDGkfnzJk78MWR+FcAEyjTKJChnECeckDSntwfB21FnhRa/uVsA5q 51Dm4edgho7mWK1/SH+ZuxRkyH56Kf3ati7YaniIbBsWOCyyITaSXF/+b9BJkZJae9vM omiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=F3IlzRgd5UvMwrAwQo6DqdzSohdSPW85M7WATjGeIHA=; b=Bs5nsewHamq6Xp3FDYEnw+pHEwnt++cQyOXPS+XAfl0JKzZVx9yx9p+IDbHcv9uf4W GIjSLs0iu5XXfwxAi3KsqIgDhNOn7xlK4wcVB5DSYrpFwX/Cl+koII7McDzq/30nsB3e FIYtEf/DFjGfZgFnRbrqDX0XqaZ9P8TQTSD7X/tnCqYJiqTHO/rWkena3G38oRwF5y6K yqgJ1+d5vJbmEnSAWbKvj72afLmYjf48yvZ3xHwl20TWURhgLiwR7bimy4Fx7ydt0ubs E11q0IyIIE485tzsN8G2jCp85GvXt6P2zQnUygSea2FarcUMbOcvFFggUKBkmFMMHOBX hYEg== X-Gm-Message-State: AFeK/H3FiTQdYO86wLJksYMqm1YxJSUzW6KdwtR6PVKszPxls0PYSuhq 3b8sDALB8UEV5YRp9oY= X-Received: by 10.28.15.69 with SMTP id 66mr24198418wmp.105.1491483438465; Thu, 06 Apr 2017 05:57:18 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id n13sm16294282wmi.28.2017.04.06.05.57.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Apr 2017 05:57:17 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Thu, 6 Apr 2017 14:57:07 +0200 Message-Id: <1491483427-5181-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] mk: build examples list before each doxygen run X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 12:57:19 -0000 The file examples.dox was not re-generated when a file is added or removed from examples/. It is now removed on clean operation. The ordering of operations (clean before generation) is also better defined. Signed-off-by: Thomas Monjalon --- mk/rte.sdkdoc.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk index 39c67a9..fb8f915 100644 --- a/mk/rte.sdkdoc.mk +++ b/mk/rte.sdkdoc.mk @@ -68,7 +68,7 @@ all: api-html guides-html guides-pdf clean: api-html-clean guides-html-clean guides-pdf-clean guides-man-clean .PHONY: api-html -api-html: api-html-clean $(API_EXAMPLES) +api-html: $(API_EXAMPLES) @echo 'doxygen for API...' $(Q)mkdir -p $(RTE_OUTPUT)/doc/html $(Q)(cat $(RTE_SDK)/doc/api/doxy-api.conf && \ @@ -85,11 +85,12 @@ api-html: api-html-clean $(API_EXAMPLES) .PHONY: api-html-clean api-html-clean: + $(Q)rm -f $(API_EXAMPLES) $(Q)rm -f $(RTE_OUTPUT)/doc/html/api/* $(Q)rmdir -p --ignore-fail-on-non-empty $(RTE_OUTPUT)/doc/html/api 2>&- || true -$(API_EXAMPLES): - $(Q)mkdir -p $(RTE_OUTPUT)/doc/html +$(API_EXAMPLES): api-html-clean + $(Q)mkdir -p $(@D) @printf '/**\n' > $(API_EXAMPLES) @printf '@page examples DPDK Example Programs\n\n' >> $(API_EXAMPLES) @find examples -type f -name '*.c' -printf '@example %p\n' >> $(API_EXAMPLES) -- 2.7.0