-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
45 lines (30 loc) · 628 Bytes
/
makefile
File metadata and controls
45 lines (30 loc) · 628 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: help
help: makefile
@tail -n +4 makefile | grep ".PHONY"
.PHONY: build
build: processing-pipeline.svg
.PHONY: format
format:
echo "TODO"
.PHONY: install
install:
cargo install --path .
%.json: %.ncl
nickel export \
--color=always \
oclis-contract.ncl \
--output $@ \
$<
spec-files := $(wildcard src/*.ncl examples/*.ncl)
spec-files-json := $(spec-files:.ncl=.json)
.PHONY: test
test: $(spec-files-json)
cargo clippy
cargo test
processing-pipeline.svg: processing-pipeline.dot
dot -T svg -o $@ $<
.PHONY: clean
clean:
rm -f $(spec-files-json)
rm -f processing-pipeline.svg
rm -rf .nickel