From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama50.ecl.ntt.co.jp (tama50.ecl.ntt.co.jp [129.60.39.147]) by dpdk.org (Postfix) with ESMTP id 7208E4C9D for ; Fri, 31 Aug 2018 11:14:55 +0200 (CEST) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id w7V9Eswu030946; Fri, 31 Aug 2018 18:14:54 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 64E80EA8115; Fri, 31 Aug 2018 18:14:54 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 4DC3CEA6DDE; Fri, 31 Aug 2018 18:14:54 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com Cc: Yasufumi Ogawa Date: Fri, 31 Aug 2018 18:14:38 +0900 Message-Id: <20180831091441.39055-9-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20180831091441.39055-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20180831091441.39055-1-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 08/11] makefile: add make option to compile PDF doc X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 09:14:56 -0000 From: Yasufumi Ogawa Add an option to compile PDF document. $ make doc-pdf Signed-off-by: Yasufumi Ogawa --- Makefile | 13 +++++++++++-- docs/guides/compile-doc.sh | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5522542..6d29dcc 100644 --- a/Makefile +++ b/Makefile @@ -44,11 +44,20 @@ DIRS-y += src include $(RTE_SDK)/mk/rte.extsubdir.mk +DOC_ROOT = docs/guides + # Compile RST documents .PHONY: doc-html doc-html: - sh docs/guides/compile-doc.sh doc-html + sh $(DOC_ROOT)/compile-doc.sh doc-html + +.PHONY: doc-pdf +doc-pdf: + python $(DOC_ROOT)/gen_pdf_imgs.py + sh $(DOC_ROOT)/compile-doc.sh doc-pdf + find $(DOC_ROOT)/images/ -type f -name "*.pdf" -delete + @echo "Succeeded to generate '$(DOC_ROOT)/_build/latex/SoftPatchPanel.pdf'" .PHONY: doc-clean doc-clean: - sh docs/guides/compile-doc.sh clean + sh $(DOC_ROOT)/compile-doc.sh clean diff --git a/docs/guides/compile-doc.sh b/docs/guides/compile-doc.sh index 0db5e45..237c526 100644 --- a/docs/guides/compile-doc.sh +++ b/docs/guides/compile-doc.sh @@ -4,6 +4,8 @@ cd `dirname ${0}` if [ $1 = 'doc-html' ]; then make html +elif [ $1 = 'doc-pdf' ]; then + make latexpdf elif [ $1 = 'clean' ]; then make clean fi -- 2.7.4