-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 743 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 743 Bytes
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
SCSS_ASSETS := $(addprefix scss/,$(addsuffix .scss, \
_base elements fonts header layout sections style))
TEMPLATES := $(addprefix templates/,$(addsuffix .html, \
simple_page navbar_item))
PANDOC_CMD := pandoc -s --template templates/simple_page.html --metadata-file=test/mdata.yaml
css/style.css: $(SCSS_ASSETS)
mkdir -p css
rm -f css/style.css
sass scss/style.scss css/style.css
test_html: css/style.css $(TEMPLATES)
mkdir -p html/
cp -r css html/
cp -r scss html/
$(PANDOC_CMD) test/index.md -o html/index.html
mkdir -p html/oneshot
$(PANDOC_CMD) test/oneshot/index.md -o html/oneshot/index.html
serve:
cd html && python -m http.server
clean:
rm -rf html
.PHONY: error_pages_simple error_pages_blog serve test_html clean