mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-09-10 23:15:30 +03:00
* Also update to the latest version of `dhall` * Also fix `./scripts/generate.sh` to generate the `schemas*` files
24 lines
662 B
Makefile
24 lines
662 B
Makefile
.PHONY: install build check default
|
|
|
|
default: build
|
|
README.md: docs/README.md.dhall
|
|
./scripts/build-readme.sh
|
|
|
|
build: README.md
|
|
mkdir -p types defaults
|
|
dhall-kubernetes-generator "${OPENAPI_SPEC}"
|
|
|
|
dhall freeze --all --inplace ./types.dhall
|
|
dhall freeze --all --inplace ./typesUnion.dhall
|
|
dhall freeze --all --inplace ./defaults.dhall
|
|
dhall freeze --all --inplace ./schemas.dhall
|
|
check: build
|
|
LC_ALL=en_US.UTF-8 ./scripts/check-source.py
|
|
mkdir -p tmp
|
|
LC_ALL=en_US.UTF-8 ./scripts/build-examples.py tmp
|
|
install: build
|
|
cp -r types defaults schemas "${out}"
|
|
cp types.dhall defaults.dhall typesUnion.dhall schemas.dhall "${out}"
|
|
cp README.md "${out}"
|
|
|