-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.refdoc
44 lines (30 loc) · 1.55 KB
/
Makefile.refdoc
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
refdoc:
@test -d refdoc || mkdir refdoc
refdoc/modref: refdoc
@test -d refdoc/modref || mkdir refdoc/modref
plib/doc_build/images: plib/doc_build
@test -d plib/doc_build/images || mkdir plib/doc_build/images
plib/doc_build: plib
@test -d plib/doc_build || mkdir plib/doc_build
plib/modules: plib
@test -d plib/modules || mkdir plib/modules
plib/refdoc: plib
@test -d plib/refdoc || mkdir plib/refdoc
plib:
@test -d plib || mkdir plib
extract_autodoc: plib/refdoc plib/doc_build/images
$(RUNPIKE) -x extract_autodoc --builddir=plib/refdoc --srcdir=lib
join_autodoc: extract_autodoc
$(RUNPIKE) -x join_autodoc --quiet --post-process "plib/autodoc.xml" "$(CORE_AUTODOC_PATH)" "plib/refdoc"
modref: join_autodoc modref.xml
cd $(SYSTEM_DOC_PATH)/src && $(MAKE) $(MAKE_FLAGS) BUILDDIR="$(FULL_SRCDIR)/plib" DESTDIR="$(SYSTEM_DOC_PATH)" modref
module_join_autodoc: extract_autodoc refdoc/modref
$(RUNPIKE) -x join_autodoc --quiet --post-process "plib/autodoc.xml" "plib/refdoc"
module_modref: module_join_autodoc module_modref.xml
cd $(SYSTEM_DOC_PATH)/src && $(MAKE) $(MAKE_FLAGS) BUILDDIR="$(FULL_SRCDIR)/plib" DESTDIR="$(FULL_SRCDIR)/refdoc/" module_modref
modref.xml: plib/autodoc.xml $(SYSTEM_DOC_PATH)/src/structure/modref.xml
$(RUNPIKE) -x assemble_autodoc $(SYSTEM_DOC_PATH)/src/structure/modref.xml \
plib/autodoc.xml >plib/modref.xml
module_modref.xml: plib/autodoc.xml $(SYSTEM_DOC_PATH)/src/structure/module_modref.xml
$(RUNPIKE) -x assemble_autodoc $(SYSTEM_DOC_PATH)/src/structure/module_modref.xml \
plib/autodoc.xml >plib/module_modref.xml