forked from pmix/pmix-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
112 lines (98 loc) · 3.18 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
109
110
111
112
# 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"
all: pmix-standard.pdf check
CHAPTERS= \
TitlePage.tex \
Chap_Introduction.tex \
Chap_Revisions.tex \
Chap_Terms.tex \
Chap_API_Struct.tex \
Chap_API_Init.tex \
Chap_API_Sync.tex \
Chap_API_Sharing_Basics.tex \
Chap_API_Reserved_Keys.tex \
Chap_API_Query.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_ \
debug-files
pmix-standard.pdf: $(CHAPTERS) $(SOURCES) pmix.sty pmix-standard.tex figs/pmix-logo.png
@echo "Hi"
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
@cp pmix-standard.pdf pmix-standard-${version}.pdf
check: check-doc display-stats
# Includes
# - make check-decl
# - make check-attr-ref
check-doc: pmix-standard.pdf
@./bin/check-doc.sh
@echo "========> Success <========"
check-attr-ref: pmix-standard.pdf
@echo "====> Checking for Attributes Declared, but not referenced"
@./bin/check-attr-refs.py
check-decl: pmix-standard.pdf
@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
@echo "====> Checking cross-reference with OpenPMIx"
@./bin/check-openpmix.py -b ${OPENPMIX_BRANCH}
display-stats: pmix-standard.pdf
@echo "====> Display Stats"
@mkdir -p debug-files
@./bin/display-stats.py -f debug-files/std
clean:
rm -rf $(INTERMEDIATE_FILES) pmix-standard-*.pdf