Skip to content

Commit

Permalink
build: change default makefile target (#8973)
Browse files Browse the repository at this point in the history
to a usage prompt
  • Loading branch information
alexgarel committed Sep 8, 2023
1 parent ddd8177 commit c298ab3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ DOCKER_COMPOSE=docker-compose --env-file=${ENV_FILE} ${LOAD_EXTRA_ENV_FILE}
# we also enable the possibility to fake services in po_test_runner
DOCKER_COMPOSE_TEST=ROBOTOFF_URL="http://backend:8881/" GOOGLE_CLOUD_VISION_API_URL="http://backend:8881/" COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}_test PO_COMMON_PREFIX=test_ MONGO_EXPOSE_PORT=27027 docker-compose --env-file=${ENV_FILE}

.DEFAULT_GOAL := dev
.DEFAULT_GOAL := usage

# this target is always to build, see https://www.gnu.org/software/make/manual/html_node/Force-Targets.html
_FORCE:
Expand All @@ -64,6 +64,11 @@ _FORCE:
info:
@echo "${NAME} version: ${VERSION}"

usage:
@echo "馃カ Welcome to the Open Food Facts project"
@echo "馃カ See available commands at docker/README.md"
@echo "馃カ or https://openfoodfacts.github.io/openfoodfacts-server/dev/ref-docker-commands/"

hello:
@echo "馃カ Welcome to the Open Food Facts dev environment setup!"
@echo "馃カ Note that the first installation might take a while to run, depending on your machine specs."
Expand Down

0 comments on commit c298ab3

Please sign in to comment.