2018-12-18 18:04:42 +00:00
|
|
|
# List any directories that have their own Makefile here
|
2019-01-22 17:16:27 +00:00
|
|
|
SUBDIRS =
|
2018-12-18 18:04:42 +00:00
|
|
|
|
|
|
|
# Default target
|
2019-02-06 00:44:25 +00:00
|
|
|
all: $(SUBDIRS) swagger_gen.go
|
2018-12-18 18:04:42 +00:00
|
|
|
|
|
|
|
# Recurse into subdirs for same make goal
|
|
|
|
$(SUBDIRS):
|
|
|
|
$(MAKE) -C $@ $(MAKECMDGOALS)
|
|
|
|
|
|
|
|
# Clean all targets recursively
|
|
|
|
clean: $(SUBDIRS)
|
2019-01-22 17:16:27 +00:00
|
|
|
rm -f swagger_gen.go
|
2018-12-18 18:04:42 +00:00
|
|
|
|
2019-01-22 17:16:27 +00:00
|
|
|
swagger_gen.go: swagger.go redoc.go swagger.yml
|
|
|
|
go generate -x
|
|
|
|
echo '//lint:file-ignore ST1005 Ignore error strings should not be capitalized' >> swagger_gen.go
|
2018-12-20 19:17:02 +00:00
|
|
|
|
|
|
|
GO_RUN := env GO111MODULE=on go run
|
|
|
|
|
2018-12-18 18:04:42 +00:00
|
|
|
.PHONY: all clean $(SUBDIRS)
|