forked from pmix/pmix-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (56 loc) · 1.94 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
# Makefile for the PMIx Standard document in LaTex format.
# For more information, see the master document, pmix-standard.tex.
version=2.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 \
App_Support.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
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 "====> Success"
cp pmix-standard.pdf pmix-standard-${version}.pdf
clean:
rm -f $(INTERMEDIATE_FILES)