mirror of
https://github.com/containers/podman.git
synced 2026-05-30 03:19:01 -04:00
The podman module paths are moving from github.com/containers/podman to go.podman.io/podman. This will help with future mobility. Signed-off-by: Brent Baude <bbaude@redhat.com>
16 lines
541 B
Makefile
16 lines
541 B
Makefile
SWAGGER_OUT ?= swagger.yaml
|
|
|
|
SWAGGER ?= ../../test/tools/build/swagger
|
|
|
|
validate: ${SWAGGER_OUT}
|
|
$(SWAGGER) validate ${SWAGGER_OUT}
|
|
|
|
serve: ${SWAGGER_OUT}
|
|
$(SWAGGER) serve -F redoc -p=8080 swagger.yaml
|
|
|
|
.PHONY: ${SWAGGER_OUT}
|
|
${SWAGGER_OUT}:
|
|
# generate doesn't remove file on error
|
|
rm -f ${SWAGGER_OUT}
|
|
$(SWAGGER) generate spec -c go.podman.io/podman -x github.com/sigstore/rekor -x github.com/moby/moby/api/types/network -x github.com/docker/docker/api/types/network -x github.com/moby/moby/api -o ${SWAGGER_OUT} -i tags.yaml -w ./ -m
|