-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
54 lines (37 loc) · 1.24 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.POSIX:
SLIM_INTERPRETER = ~/local/var/slime.sh
# ------ phony targets ------
_default: _warning _run_tidy _run_slim
_force:
_warning:
@echo "WARNING: this uses a hand-rolled slim interpreter at"
@echo " ~/local/var/slime.sh"
@echo
@echo "WARNING: this Makefile is hand-rolled and not complete yet"
@echo
@echo " currently it handles:"
@echo
@echo " - employment/index.html"
@echo " - docs/index.html"
@echo " - docs/contact/index.html"
# ------ generate with slim up html ------
_run_slim: _run_slim_description \
docs/index.html \
docs/employment/index.html
_run_slim_description: _force
@echo
@echo "Generating html from slim files..."
docs/index.html: index.slim
$(SLIM_INTERPRETER) <index.slim >docs/index.html
tidy5 -config tidy_config.txt -m docs/index.html
docs/employment/index.html: employment/index.slim
$(SLIM_INTERPRETER) <employment/index.slim >docs/employment/index.html
tidy5 -config tidy_config.txt -m docs/employment/index.html
# ------ tidy up html ------
_run_tidy: _run_tidy_description \
docs/contact/index.html
_run_tidy_description: _force
@echo
@echo "Linting html files with tidy..."
docs/contact/index.html: _force
tidy5 -config tidy_config.txt -m docs/contact/index.html