Skip to content

Commit 45ec978

Browse files
author
Mauko Quiroga
committed
Deprecate 'make api'
1 parent 53b0285 commit 45ec978

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ KO := "$$(tput setaf 1) [!] $$(tput sgr0)"
33
PASS := "$$(tput setaf 3) [~] $$(tput sgr0)"
44
WORKING := "$$(tput setaf 5)[⚙]$$(tput sgr0)"
55
OPTIONS := "$$(tput setaf 6)[ℹ]$$(tput sgr0)"
6+
WARNINGS = "$$(tput setaf 3)[ℹ]$1$$(tput sgr0)"
67
COUNTRY_TEMPLATE := openfisca_country_template
78
EXTENSION_TEMPLATE := openfisca_extension_template
89
PYTHON_PACKAGES_PATH := $$(python -c "import sysconfig; print(sysconfig.get_paths()[\"purelib\"])")
@@ -143,7 +144,7 @@ test::
143144
@PYTEST_ADDOPTS="$$PYTEST_ADDOPTS ${pytest_args}" openfisca test ${EXTENSION_TEMPLATE_TESTS} --country-package ${COUNTRY_TEMPLATE} --extensions ${EXTENSION_TEMPLATE} ${openfisca_args}
144145

145146
## Serve the OpenFisca Web API.
146-
serve::
147+
serve:
147148
@## Usage:
148149
@##
149150
@## make serve [gunicorn_args="--ARG"] [openfisca_args="--ARG"]
@@ -159,4 +160,6 @@ serve::
159160
@[ ! -z "${openfisca_args}" ] && echo "${OPTIONS} openfisca arguments: ${openfisca_args}" ; :
160161
@openfisca serve --country-package ${COUNTRY_TEMPLATE} --extensions ${EXTENSION_TEMPLATE} ${gunicorn_args} ${openfisca_args}
161162

162-
api: serve
163+
api:
164+
@echo $(call WARNINGS, "[make api]\'s been deprecated... please use [make serve] instead!")
165+
@$(MAKE) serve

0 commit comments

Comments
 (0)