Skip to content

Commit 68a1759

Browse files
authored
Merge pull request #85 from TakayukiMatsuo/tpm
Add Japanese support for wolfTPM
2 parents 5bc1364 + 4706e19 commit 68a1759

File tree

11 files changed

+22041
-1
lines changed

11 files changed

+22041
-1
lines changed

wolfTPM/Makefile

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ SOURCES = chapter01.md \
1111
chapter05.md \
1212
chapter06.md
1313

14-
PDF = wolfTPM-Manual.pdf
14+
ifeq ($(DOC_LANG),JA)
15+
DOXY = Doxyfile-ja
16+
PDF = wolfTPM-Manual-jp.pdf
17+
else
18+
DOXY = Doxyfile
19+
PDF = wolfTPM-Manual.pdf
20+
endif
21+
1522

1623
wolftpm:
1724
@git clone --depth 1 https://github.com/wolfSSL/wolftpm
@@ -36,8 +43,14 @@ api: wolftpm-update
3643
# 3. Fix the titles of the header files markdown
3744
.PHONY: html-prep
3845
html-prep: api
46+
ifeq ($(DOC_LANG),JA)
47+
@cp -a header-ja/group* build/html/
48+
@cp -a header-ja/*8h* build/html/
49+
else
3950
@cp -a api/md/group* build/html/
4051
@cp -a api/md/*8h* build/html/
52+
endif
53+
4154
@rm -rf build/html/chapter05.md
4255
@perl -i -pe "s/\[(.*?)\]\(Classes\/.*?.md\)/\[\1\]\(#typedef-\1\)/g" build/html/group* build/html/*8h*
4356
@perl -i -pe "s/(?<=md\#function\-)(.*)(?=\))/\$$1=~s#-#_#gr/ge" build/html/group* build/html/*8h*
@@ -72,4 +85,8 @@ pdf-prep: api
7285
@perl -i -pe "s/(?<=md\#enum\-)(.*)(?=\))/\$$1=~s#-#_#gr/ge" api/md/*.md
7386
@rm -rf build/pdf/chapter05.md
7487
@echo '# API Reference' >> build/pdf/chapter05.md
88+
ifeq ($(DOC_LANG),JA)
89+
@cat header-ja/group__TPM2__Proprietary.md header-ja/tpm2_8h.md header-ja/tpm2__wrap_8h.md header-ja/group__wolfTPM2__Wrappers.md >> build/pdf/chapter05.md
90+
else
7591
@cat api/md/group__TPM2__Proprietary.md api/md/tpm2_8h.md api/md/tpm2__wrap_8h.md api/md/group__wolfTPM2__Wrappers.md >> build/pdf/chapter05.md
92+
endif

0 commit comments

Comments
 (0)