Add dependency to OpenAPI specfication file
The generation is allowed when file is more recent than output directory.
This commit is contained in:
4
Makefile
4
Makefile
@@ -5,11 +5,11 @@ download: swagger-codegen-cli.jar
|
||||
swagger-codegen-cli.jar:
|
||||
wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.20/swagger-codegen-cli-3.0.20.jar -O swagger-codegen-cli.jar
|
||||
|
||||
doc:
|
||||
doc: openkarotz-openapi.json
|
||||
mkdir -p html
|
||||
java -jar swagger-codegen-cli.jar generate -i openkarotz-openapi.json -l html -o html
|
||||
|
||||
python:
|
||||
python: openkarotz-openapi.json
|
||||
mkdir -p python
|
||||
java -jar swagger-codegen-cli.jar generate -i openkarotz-openapi.json -l python -o python -c config-python.json
|
||||
|
||||
|
||||
Reference in New Issue
Block a user