-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
43 lines (28 loc) · 1.32 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
BIKESHED ?= bikeshed
BIKESHED_ARGS ?= --print=plain
.PHONY: lint watch watch-app watch-net all
# TODO: Generalize targets to reduce duplication.
all: index.html application.html network.html
index.html: index.bs messages_appendix.html
$(BIKESHED) $(BIKESHED_ARGS) spec $<
application.html: application.bs application_messages.html
$(BIKESHED) $(BIKESHED_ARGS) spec $<
network.html: network.bs network_messages.html
$(BIKESHED) $(BIKESHED_ARGS) spec $<
messages_appendix.html: messages_appendix.cddl scripts/pygmentize_dir.py scripts/cddl_lexer.py scripts/openscreen_cddl_dfns.py
./scripts/pygmentize_dir.py
application_messages.html: application_messages.cddl scripts/pygmentize_dir.py scripts/cddl_lexer.py scripts/openscreen_cddl_dfns.py
./scripts/pygmentize_dir.py
network_messages.html: network_messages.cddl scripts/pygmentize_dir.py scripts/cddl_lexer.py scripts/openscreen_cddl_dfns.py
./scripts/pygmentize_dir.py
lint: index.bs
$(BIKESHED) $(BIKESHED_ARGS) --dry-run --force spec --line-numbers $<
watch: index.bs
@echo 'Browse to file://${PWD}/index.html'
$(BIKESHED) $(BIKESHED_ARGS) watch $<
watch-app: application.bs
@echo 'Browse to file://${PWD}/application.html'
$(BIKESHED) $(BIKESHED_ARGS) watch $<
watch-net: network.bs
@echo 'Browse to file://${PWD}/network.html'
$(BIKESHED) $(BIKESHED_ARGS) watch $<