-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.18 KB
/
Copy pathMakefile
File metadata and controls
48 lines (40 loc) · 1.18 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
# Makefile contains targets to assist in building viztransform commands.
#
# Ones that don't build commands log what they are doing followed by a newline.
# Ones that do build commands echo 'making' and what they're making followed by
# a newline.
.PHONY: doc
# all builds the all commands and generates docs.
all: viztransform_apply viztransform_simplify viztransform_viz doc
# viztransform_apply makes the viztransform_apply command.
viztransform_apply:
@echo "making $@"
$(call go,$@)
@echo
# viztransform_simplify makes the viztransform_simplify command.
viztransform_simplify:
@echo "making $@"
$(call go,$@)
@echo
# viztransform_viz makes the viztransform_viz command.
viztransform_viz:
@echo "making $@"
$(call go,$@)
@echo
# doc makes the docs.
doc:
@echo 'making doc'
$(call pdf,algorithm)
@echo
# pdf is used to make PDFs from Latex files using Pandoc.
#
# The Latex files are expected to be found in the doc directory.
define pdf
pandoc doc/$(1).md --latex-engine xelatex -o doc/$(1).pdf
endef
# go is used to install Go commands referred to by the name of the command.
#
# The commands are expected to be found in the cmd directory.
define go
cd cmd/$(1) && go install
endef