-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 748 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 748 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
28
29
30
31
MAKEFLAGS += "-j 4"
DOCS := $(patsubst ../docs/%.md, public/%.html, $(shell find ../docs -name "*.md"))
PAGES := $(patsubst src/pages/%.md, public/%.html, $(shell find src/pages -name "*.md"))
all: $(DOCS) $(PAGES) public/changelog.html
server: clean
@ $(MAKE) all
@ ./scripts/serve
publish: clean
@ ./scripts/publish
clean:
@ rm -rf $(PAGES) $(DOCS)
public/changelog.html: ../CHANGELOG.md src/layouts/default.html
@ ./scripts/build-page $< $@ default
@ echo [+] $@
public/index.html: src/pages/index.md src/layouts/home.html
@ ./scripts/build-page $< $@ home
@ echo [+] $@
public/%.html: ../docs/%.md src/layouts/default.html
@ mkdir -p $(@D)
@ ./scripts/build-page $< $@ default
@ echo [+] $@
.PHONY: all server publish clean