-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (48 loc) · 1.41 KB
/
Makefile
File metadata and controls
61 lines (48 loc) · 1.41 KB
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
SHELL := /bin/sh
SRCDIR := source
BUILDDIR := build
TEMPLATE := templates/everse.latex
INPUTS := $(SRCDIR)/main.md \
$(SRCDIR)/01-introduction/index.md \
$(SRCDIR)/02-framework/index.md \
$(SRCDIR)/02-framework/technical-dimensions.md \
$(SRCDIR)/02-framework/fair.md \
$(SRCDIR)/02-framework/open-source-software.md \
$(SRCDIR)/02-framework/sustainability.md \
$(SRCDIR)/02-framework/community.md \
$(SRCDIR)/03-views/index.md \
$(SRCDIR)/03-views/three-tiers.md \
$(SRCDIR)/03-views/software-lifecycle.md \
$(SRCDIR)/03-views/personas.md \
$(SRCDIR)/03-views/science-clusters.md \
$(SRCDIR)/04-conclusions/index.md
PANDOC_COMMON := --from markdown --standalone --resource-path=.:$(SRCDIR):$(SRCDIR)/figures
.PHONY: all pdf html markdown clean
all: pdf
pdf: $(BUILDDIR)/reference-framework.pdf
html: $(BUILDDIR)/reference-framework.html
markdown: $(BUILDDIR)/reference-framework.md
$(BUILDDIR):
mkdir -p $(BUILDDIR)
$(BUILDDIR)/reference-framework.pdf: $(INPUTS) $(TEMPLATE) | $(BUILDDIR)
pandoc $(PANDOC_COMMON) \
--to pdf \
--pdf-engine=lualatex \
--template=$(TEMPLATE) \
--dpi=300 \
--toc \
$(INPUTS) \
-o $@
$(BUILDDIR)/reference-framework.html: $(INPUTS) | $(BUILDDIR)
pandoc $(PANDOC_COMMON) \
--to html \
--toc \
$(INPUTS) \
-o $@
$(BUILDDIR)/reference-framework.md: $(INPUTS) | $(BUILDDIR)
pandoc $(PANDOC_COMMON) \
--to markdown \
$(INPUTS) \
-o $@
clean:
rm -rf $(BUILDDIR)