forked from pmix/pmix-standard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
108 lines (94 loc) · 3.1 KB
/
Makefile
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Makefile for the PMIx Standard document in LaTex format.
# For more information, see the master document, pmix-standard.tex.
LATEX_C=pdflatex -shell-escape -file-line-error
version=v5.0
OPENPMIX_BRANCH ?= "master"
default: pmix-standard.pdf
CHAPTERS= \
TitlePage.tex \
Chap_Introduction.tex \
Chap_Revisions.tex \
Chap_Terms.tex \
Chap_API_Struct.tex \
Chap_API_Init.tex \
Chap_API_Sync_Access.tex \
Chap_API_Reserved_Keys.tex \
Chap_API_NonReserved_Keys.tex \
Chap_API_Publish.tex \
Chap_API_Proc_Mgmt.tex \
Chap_API_Job_Mgmt.tex \
Chap_API_Event.tex \
Chap_API_Data_Mgmt.tex \
Chap_API_Security.tex \
Chap_API_Server.tex \
Chap_API_Fabric.tex \
Chap_API_Sets_Groups.tex \
Chap_API_Tools.tex \
Chap_API_Storage.tex \
App_Python.tex \
App_Use_Cases.tex \
Acknowledgements.tex
SOURCES=sources/*.c \
sources/*.py \
INTERMEDIATE_FILES=pmix-standard.pdf \
pmix-standard.toc \
pmix-standard.idx \
pmix-standard.ilg \
pmix-standard.ind \
pmix-standard.aux \
pmix-standard.out \
pmix-standard.log \
pmix-standard.bbl \
pmix-standard.blg \
pmix-standard.synctex.gz \
pmix-standard.xwm \
pmix-standard.mw \
pmix-standard.loc \
pmix-standard.soc \
*.idx *.ilg *.ind \
_minted-* \
sources/_autogen_
all: pmix-standard.pdf
pmix-standard.pdf: $(CHAPTERS) $(SOURCES) pmix.sty pmix-standard.tex figs/pmix-logo.png
rm -rf $(INTERMEDIATE_FILES)
@echo "-------------------------------------------------------------"
@echo "If error occurs check pmix-standard.log and pmix-standard.ind"
@echo "-------------------------------------------------------------"
@echo "====> Preprocess Examples"
@./bin/process-example.py $(SOURCES)
@echo "====> Building 1/4"
$(LATEX_C) -interaction=batchmode pmix-standard.tex || \
$(LATEX_C) -interaction=errorstopmode pmix-standard.tex < /dev/null
@echo "====> Building 2/4 (bibtex)"
bibtex pmix-standard < /dev/null
@echo "====> Building 3/4"
$(LATEX_C) -interaction=batchmode pmix-standard.tex || \
$(LATEX_C) -interaction=errorstopmode pmix-standard.tex < /dev/null
@echo "====> Building 4/4"
$(LATEX_C) -interaction=batchmode pmix-standard.tex || \
$(LATEX_C) -interaction=errorstopmode pmix-standard.tex < /dev/null
$(LATEX_C) -interaction=batchmode pmix-standard.tex
@./bin/check-doc.sh
@echo "====> Success"
@cp pmix-standard.pdf pmix-standard-${version}.pdf
FORCECHECK:
check: check-doc check-openpmix
# Includes
# - make check-decl
# - make check-attr-ref
check-doc: pmix-standard.pdf FORCECHECK
@./bin/check-doc.sh
check-attr-ref: pmix-standard.pdf FORCECHECK
@echo "====> Checking for Attributes Declared, but not referenced"
@./bin/check-attr-refs.py
check-decl: pmix-standard.pdf FORCECHECK
@echo "====> Checking for Multi-declared items"
@./bin/check-multi-declare.py
# The default is defined near the top of the Makefile
# To change the default at runtime you can manually set the envar:
# OPENPMIX_BRANCH=master make check-openpmix
check-openpmix: pmix-standard.pdf FORCECHECK
@echo "====> Checking cross-reference with OpenPMIx"
@./bin/check-openpmix.py -b ${OPENPMIX_BRANCH}
clean:
rm -rf $(INTERMEDIATE_FILES) pmix-standard-*.pdf