blob: 3e5a42a8bb74cf4bd5ffa2bd1d5038bc0ee9efb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Creating CommonAPI documentation
docgendir=../doc
htmldocgendir=$(docgendir)/html
pdfdocgendir=$(docgendir)/pdf
iconsdir=../images/icons
imagedir=../images
datestring=$(shell date "+%d.\ %b\ %Y")
verification_project_path=../org.genivi.commonapi.core.verification
commonapi_version=$(PROJECT_VERSION)
all: doc
doc: spec_html spec_pdf tut_html tut_pdf test_html test_pdf
spec_html: docgendir
mkdir -p $(htmldocgendir)
asciidoc \
-a revdate=$(datestring) \
-a icons \
-a iconsdir=$(iconsdir) \
-a imagedir=$(imagedir) \
-a version=$(commonapi_version) \
-a cppstr=cpp \
-a tabsize=4 \
-o $(htmldocgendir)/CommonAPISpecification.html \
CommonAPISpecification
spec_pdf: docgendir
mkdir -p $(pdfdocgendir)
a2x \
-a revdate=$(datestring) \
-a icons \
-a iconsdir=$(iconsdir) \
-a imagedir=$(imagedir) \
-a version=$(commonapi_version) \
-a tabsize=4 \
-f pdf \
--dblatex-opts "-P latex.output.revhistory=0" \
--icons \
-D $(pdfdocgendir) \
CommonAPISpecification
tut_html: docgendir
mkdir -p $(htmldocgendir)
asciidoc -a revdate=$(datestring) \
-a icons \
-a iconsdir=$(iconsdir) \
-a imagedir=$(imagedir) \
-a version=$(commonapi_version) \
-a cppstr=cpp \
-a tabsize=4 \
-b html \
-o $(htmldocgendir)/Tutorial.html \
Tutorial
tut_pdf: docgendir
mkdir -p $(pdfdocgendir)
a2x \
-a revdate=$(datestring) \
-a icons \
-a iconsdir=$(iconsdir) \
-a imagedir=$(imagedir) \
-a version=$(commonapi_version) \
-a tabsize=4 \
-f pdf \
--dblatex-opts "-P latex.output.revhistory=0 -P imagedata.default.scale=maxwidth=10cm,maxheight=8cm" \
--icons \
-D $(pdfdocgendir) \
Tutorial
test_html: docgendir
mkdir -p $(htmldocgendir)/tests
OUTPUT_DIRECTORY=$(htmldocgendir)/tests \
PROJECT_NAME=CommonAPITests \
SRC_DIR='$(verification_project_path)/src ../docx/mainpagetests' \
doxygen $(verification_project_path)/doxygen-test.cfg
test_pdf: test_html
mkdir -p $(pdfdocgendir)/tests
cd $(htmldocgendir)/tests/latex; make > /dev/null
cd $(htmldocgendir)/tests
cp $(htmldocgendir)/tests/latex/refman.pdf $(pdfdocgendir)/tests/CommonAPITests.pdf
rm -rf $(htmldocgendir)/tests/latex
docgendir:
mkdir -p $(docgendir)
cp -rf images $(docgendir)/images
cp index.html $(docgendir)
clean:
rm -rf $(docgendir)
|