forked from sagikazarmark/mga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (20 loc) · 878 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
# A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
# Add the ability to override some variables
# Use with care
-include override.mk
# Main targets
include main.mk
# Add custom targets here
-include custom.mk
.PHONY: generate
generate: export PATH := $(abspath ${BUILD_DIR}/):${PATH}
generate: build ## Generate test code
go generate ./...
${BUILD_DIR}/mga generate kit endpoint ./...
${BUILD_DIR}/mga generate event handler ./...
${BUILD_DIR}/mga generate event handler --output subpkg:suffix=gen ./...
${BUILD_DIR}/mga generate event dispatcher ./...
${BUILD_DIR}/mga generate event dispatcher --output subpkg:suffix=gen ./...
${BUILD_DIR}/mga generate testify mock ./...
${BUILD_DIR}/mga generate testify mock --output subpkg:suffix=mocks ./...
${BUILD_DIR}/mga create service --force internal/scaffold/service/test