forked from pmix/pmix-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
75 lines (67 loc) · 2.39 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
# Makefile for the PMIx Standard document in LaTex format.
# For more information, see the master document, pmix-standard.tex.
version=4.0
default: pmix-standard.pdf
CHAPTERS= \
TitlePage.tex \
Chap_Introduction.tex \
Chap_Terms.tex \
Chap_API_Init.tex \
Chap_API_Struct.tex \
Chap_API_Key_Value_Mgmt.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_Scheduler.tex \
Chap_API_Sets_Groups.tex \
Chap_API_Coord.tex \
App_Python.tex \
Acknowledgements.tex
SOURCES=
# SOURCES=sources/*.c \
# sources/*.cpp \
# sources/*.f90 \
# sources/*.f
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
all: pmix-standard.pdf
pmix-standard.pdf: $(CHAPTERS) $(SOURCES) pmix.sty pmix-standard.tex figs/pmix-logo.png
rm -f $(INTERMEDIATE_FILES)
@echo "-------------------------------------------------------------"
@echo "If error occurs check pmix-standard.log and pmix-standard.ind"
@echo "-------------------------------------------------------------"
@echo "====> Building 1/4"
pdflatex -interaction=batchmode -file-line-error pmix-standard.tex || \
pdflatex -interaction=errorstopmode -file-line-error pmix-standard.tex < /dev/null
@echo "====> Building 2/4 (bibtex)"
bibtex pmix-standard < /dev/null
@echo "====> Building 3/4"
pdflatex -interaction=batchmode -file-line-error pmix-standard.tex || \
pdflatex -interaction=errorstopmode -file-line-error pmix-standard.tex < /dev/null
@echo "====> Building 4/4"
pdflatex -interaction=batchmode -file-line-error pmix-standard.tex || \
pdflatex -interaction=errorstopmode -file-line-error pmix-standard.tex < /dev/null
pdflatex -interaction=batchmode -file-line-error pmix-standard.tex
@echo "====> Checking References (pmix-standard.log)"
@grep "Hyper reference" pmix-standard.log | grep Warning \
&& { echo "====> Error check references (above)" ; exit 1; } || { exit 0; }
@echo "====> Success"
@cp pmix-standard.pdf pmix-standard-${version}.pdf
check: pmix-standard.pdf
@echo "====> Checking for Attributes Declared, but not referenced"
@./bin/check-attr-refs.py
clean:
rm -f $(INTERMEDIATE_FILES) pmix-standard-*.pdf