File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ KO := "$$(tput setaf 1) [!] $$(tput sgr0)"
33PASS := "$$(tput setaf 3 ) [~] $$(tput sgr0 ) "
44WORKING := "$$(tput setaf 5 ) [⚙]$$(tput sgr0 ) "
55OPTIONS := "$$(tput setaf 6 ) [ℹ]$$(tput sgr0 ) "
6+ WARNINGS = "$$(tput setaf 3 ) [ℹ]$1$$(tput sgr0 ) "
67COUNTRY_TEMPLATE := openfisca_country_template
78EXTENSION_TEMPLATE := openfisca_extension_template
89PYTHON_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
You can’t perform that action at this time.
0 commit comments