Skip to content

Commit 23e7398

Browse files
committed
docs: makefile to prepare docs to static page
1 parent 94e56b7 commit 23e7398

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.PHONY: clean %.html
2+
3+
FILES = \
4+
dist/index.html \
5+
dist/layout_table.html \
6+
dist/layout_plain.html \
7+
dist/layout_bootstrap.html \
8+
dist/options.html
9+
10+
all: $(FILES)
11+
12+
clean:
13+
@rm -rf dist
14+
15+
dist:
16+
@mkdir -p $@
17+
18+
%.html: dist force-rebuild
19+
@echo Writing $@
20+
@php $(basename $(notdir $@)).php | sed -e 's/\.php/.html/g' -e 's#index\.html#/#' > $@
21+
22+
force-rebuild:

0 commit comments

Comments
 (0)