Skip to content
Snippets Groups Projects
Commit 5828cfea authored by Andreas Herten's avatar Andreas Herten
Browse files

Change Makefile

parent 61a3ad22
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/make -f
# Typeset Markdown documentation files for GPU Hackathon Jülich into PDF # Typeset Markdown documentation files for GPU Hackathon Jülich into PDF
# Individual PDFs for each .md will be created plus one concatenated, large PDF of all .md files. # Individual PDFs for each .md will be created plus one concatenated, large PDF of all .md files.
# #
# Andreas Herten, March 2017, March 2019 # Andreas Herten, March 2017, March 2019
MAKEFILE = $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
LC = pandoc LC = pandoc
LCFLAGS = --pdf-engine=xelatex --variable mainfont="PT Serif" LCFLAGS = --pdf-engine=xelatex --variable mainfont="PT Serif"
...@@ -20,7 +23,7 @@ PDFS = $(SRC:.md=.pdf) ...@@ -20,7 +23,7 @@ PDFS = $(SRC:.md=.pdf)
all: $(PDFS) all.pdf all: $(PDFS) all.pdf
%.pdf: %.md Makefile %.pdf: %.md $(MAKEFILE)
$(LC) $(LCFLAGS) -o pdf/$@ $< $(LC) $(LCFLAGS) -o pdf/$@ $<
all.pdf: LCFLAGS += --toc all.pdf: LCFLAGS += --toc
...@@ -28,7 +31,7 @@ all.pdf: LCFLAGS += --variable title:"GPU Eurohack 2019 User Guide" ...@@ -28,7 +31,7 @@ all.pdf: LCFLAGS += --variable title:"GPU Eurohack 2019 User Guide"
all.pdf: LCFLAGS += --variable abstract:"Some hints for participants and mentors of the GPU Hackathon 2019 at Jülich Supercomputing Centre. \textit{Hack Away!}" all.pdf: LCFLAGS += --variable abstract:"Some hints for participants and mentors of the GPU Hackathon 2019 at Jülich Supercomputing Centre. \textit{Hack Away!}"
all.pdf: LCFLAGS += --variable institute:"Forschungszentrum Jülich" all.pdf: LCFLAGS += --variable institute:"Forschungszentrum Jülich"
all.pdf: LCFLAGS += --variable keywords:"GPU,CUDA,OpenACC,FZJ,JSC" all.pdf: LCFLAGS += --variable keywords:"GPU,CUDA,OpenACC,FZJ,JSC"
all.pdf: $(SRC) Makefile all.pdf: $(SRC) $(MAKEFILE)
$(LC) $(LCFLAGS) -o pdf/$@ $(SRC) $(LC) $(LCFLAGS) -o pdf/$@ $(SRC)
.PHONY: clean .PHONY: clean
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment