-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (23 loc) · 869 Bytes
/
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
.PHONY: all build clean test
all:: assets/basic.svg assets/c.svg assets/basic.png assets/c.png assets/this.png build test
include makesense.mk
assets:
mkdir -p assets
assets/basic.svg: assets makesense
@MAKE -C testdata/basic -Bnd | ./makesense --type gv > assets/basic.svg
assets/c.svg: assets makesense
make -C testdata/c -Bnd | ./makesense --type gv > assets/c.svg
assets/basic.png: assets makesense
make -C testdata/basic -Bnd | ./makesense --type dot | dot -Tpng -o assets/basic.png
assets/c.png: assets makesense
make -C testdata/c -Bnd | ./makesense --type dot | dot -Tpng -o assets/c.png
assets/this.png: assets makesense
make -Bnd | ./makesense --type dot | dot -Tpng -o assets/this.png
build: makesense
makesense: makesense.go makesense_test.go
go build ./...
test: makesense_test.go
go test ./...
clean::
rm -rf ./assets
rm -f makesense