Skip to content

Commit 415024c

Browse files
author
Henry Jin
committed
Makefile update
1 parent 00bdf88 commit 415024c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Makefile for the OpenMP Examples document in LaTex format.
22
# For more information, see the main document, openmp-examples.tex.
3+
SHELL=bash
34

45
include versioninfo
56

@@ -9,14 +10,14 @@ diff: clean openmp-diff-abridged.pdf
910
release: VERSIONSTR="$(version_date)"
1011
release: clean openmp-examples.pdf
1112

12-
book: BOOK_BUILD="\\\\def\\\\bookbuild{1}"
13+
book: BOOK_BUILD="\\def\\bookbuild{1}"
1314
book: clean release
1415
mv openmp-examples-${version}.pdf openmp-examples-${version}-book.pdf
1516

16-
ccpp-only: LANG_OPT="\\\\ccpptrue\\\\fortranfalse"
17+
ccpp-only: LANG_OPT="\\ccpptrue\\fortranfalse"
1718
ccpp-only: clean release
1819

19-
fortran-only: LANG_OPT="\\\\ccppfalse\\\\fortrantrue"
20+
fortran-only: LANG_OPT="\\ccppfalse\\fortrantrue"
2021
fortran-only: clean release
2122

2223
CHAPTERS=Title_Page.tex \
@@ -49,7 +50,7 @@ LATEXDCMD=$(LATEXCMD) -draftmode
4950
DIFF_TICKET_ID=$(shell git rev-parse --abbrev-ref HEAD)
5051
GITREV=$(shell git rev-parse --short HEAD || echo "??")
5152
VERSIONSTR="GIT rev $(GITREV)"
52-
LANG_OPT="\\\\ccpptrue\\\\fortrantrue"
53+
LANG_OPT="\\ccpptrue\\fortrantrue"
5354

5455
openmp-examples.pdf: $(CHAPTERS) $(SOURCES) openmp.sty openmp-examples.tex openmp-logo.png generated-include.tex
5556
rm -f $(INTERMEDIATE_FILES)
@@ -98,12 +99,11 @@ VC_DIFF_OPTS:=${COMMON_DIFF_OPTS} --force -c latexdiff.cfg --flatten --type="${D
9899
VC_DIFF_MINIMAL_OPTS:= --only-changes --force
99100

100101
generated-include.tex:
101-
echo "$(BOOK_BUILD)"
102102
echo "$(BOOK_BUILD)" > $@
103-
echo "\def\VER{${version}}" >> $@
104-
echo "\def\SVER{${version_spec}}" >> $@
105-
echo "\def\VERDATE{${VERSIONSTR}}" >> $@
106-
echo "\\\\newif\ifccpp\\\\newif\iffortran" >> $@
103+
echo "\\def\\VER{${version}}" >> $@
104+
echo "\\def\\SVER{${version_spec}}" >> $@
105+
echo "\\def\\VERDATE{${VERSIONSTR}}" >> $@
106+
@echo "\\newif\\ifccpp\\newif\\iffortran" >> $@
107107
echo "$(LANG_OPT)" >> $@
108108
util/list_tags -vtag */sources/* >> $@
109109

0 commit comments

Comments
 (0)