-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
35 lines (24 loc) · 1.01 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
CCM_NODE ?= node1
CQLSH_CMD ?= ccm $(CCM_NODE) cqlsh
test/collections.cql: test/tmpl/schema.tmpl test/schema_generator.go
cd test; go run schema_generator.go
test/.fixtures/collections/input.go: test/tmpl/input.tmpl test/schema_generator.go
cd test; go run schema_generator.go
schema: test/collections.cql
-$(CQLSH_CMD) -f test/keyspace.cql
$(CQLSH_CMD) -k cqlc -f test/schema.cql
$(CQLSH_CMD) -k cqlc -f test/collections.cql
$(CQLSH_CMD) -k cqlc -f test/shared.cql
$(CQLSH_CMD) -k cqlc2 -f test/shared.cql
cqlc/columns.go: cqlc/tmpl/columns.tmpl cqlc/column_generator.go
cd cqlc; go run column_generator.go
columns: cqlc/columns.go
bindata: generator/binding_tmpl.go
input: test/.fixtures/collections/input.go test/collections.cql
generator/binding_tmpl.go: generator/tmpl/binding.tmpl
go-bindata -pkg=generator -o=generator/binding_tmpl.go generator/tmpl
test: columns bindata schema test/.fixtures/collections/input.go
go test -v ./...
format:
gofmt -w cqlc generator integration test
.PHONY: test columns bindata