-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (27 loc) · 869 Bytes
/
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
PORT := 4020
# PAGESDIR := pages
# DOCSDIR := course_docs
# BUILDIR := _build
# #export MD := prep.md sprint.md digging_deeper.md develpoment.md reporting.md project_success.md
# INDEX := pages-root-folder/index.md
# PAGES := $(INDEX) $(MD)
# headed := $(addprefix $(PAGESDIR)/, $(PAGES))
# headless := $(addprefix $(BUILDIR)/, $(PAGES))
# STRIPPER := _scripts/preprocess.py
# PANDOC := /usr/local/bin/pandoc
# build local Jekyll pages
local:
bundle exec jekyll serve --port $(PORT) --config _config.yml,_config_dev.yml
####### build pdf version of course handbook
# cat: headless
# $(MAKE) cat -C $(BUILDIR)
# ci: pdf
# $(MAKE) pdf -C $(BUILDIR)
# # strip YAML headers
# headless: $(headed)
# python $(STRIPPER) -outdir $(BUILDIR) $^
# # compile PDF in the build directory
# pdf: headless
# $(MAKE) -C $(BUILDIR)
# clean:
# rm -f $(BUILDIR)/*.md