-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 703 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 703 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
.PHONY: buildways
buildways:
DIR="$$(pwd)/src/ways"; \
for name in `ls -1 $$DIR`; do (cd "$$DIR/$$name" && bash -c "go build -buildmode=plugin -o $$name.so $$name.go"); done
.PHONY: build
build:
(make buildways && cd src && go mod tidy && go build main.go)
mocks:
(cd src && mockery --all --keeptree)
.PHONY: reformgen
reformgen:
DIR="$$(pwd)/src/repository/db"; \
for name in `ls -1 $$DIR`; do \
if [ -d "$$DIR/$$name" ]; then \
(cd "$$DIR/$$name" && bash -c "go generate model/*.go");\
fi \
done
#(cd src/repository/db && go generate */model/*.go )
db.migration.new:
@echo "Hi $@" \
# bash -c "migrate create -ext sql -dir $$(pwd)/src/repository/db/_migrations -seq $$@"