mirror of
https://github.com/mcuadros/ascode
synced 2024-11-22 17:02:03 +01:00
0d9142cb86
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
24 lines
701 B
Makefile
24 lines
701 B
Makefile
OUTLINE_CMD ?= outline
|
|
DOCUMENTATION_PATH ?= _documentation
|
|
DOCUMENTATION_RUNTIME_PATH ?= $(DOCUMENTATION_PATH)/runtime
|
|
|
|
RUNTIME_MODULES = \
|
|
github.com/ascode-dev/ascode/starlark/module/os \
|
|
github.com/ascode-dev/ascode/starlark/module/filepath \
|
|
github.com/qri-io/starlib/encoding/base64 \
|
|
github.com/qri-io/starlib/encoding/csv \
|
|
github.com/qri-io/starlib/encoding/json \
|
|
github.com/qri-io/starlib/re \
|
|
github.com/qri-io/starlib/http
|
|
|
|
|
|
# Rules
|
|
.PHONY: $(RUNTIME_MODULES) documentation
|
|
|
|
documentation: $(RUNTIME_MODULES)
|
|
|
|
$(RUNTIME_MODULES): $(DOCUMENTATION_RUNTIME_PATH)
|
|
@$(OUTLINE_CMD) package $@ > $(DOCUMENTATION_RUNTIME_PATH)/`basename $@`.md
|
|
|
|
$(DOCUMENTATION_RUNTIME_PATH):
|
|
mkdir -p $@
|