We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1078c18 commit 19c7fcdCopy full SHA for 19c7fcd
1 file changed
internal/dinosql/testdata/ondeck/Makefile
@@ -0,0 +1,17 @@
1
+ifeq ($(GOBIN),)
2
+GOBIN = $(firstword $(subst :, ,$(GOPATH)))/bin
3
+endif
4
+
5
+SQLC := $(GOBIN)/sqlc
6
+SQL_FILES = $(shell find ./query -type f -name '*.sql')
7
8
+$(SQLC):
9
+ go get github.com/kyleconroy/sqlc/cmd/sqlc
10
11
+prepared/db.go:
12
+prepared/models.go:
13
+db.go:
14
+models.go: $(SQL_FILES) sqlc.json | $(SQLC)
15
+ $(SQLC) generate
16
17
+sql: db.go models.go prepared/models.go prepared/db.go
0 commit comments